equal
deleted
inserted
replaced
236 |
236 |
237 // Dump shared spaces to file. |
237 // Dump shared spaces to file. |
238 |
238 |
239 void FileMapInfo::write_space(int i, Metaspace* space, bool read_only) { |
239 void FileMapInfo::write_space(int i, Metaspace* space, bool read_only) { |
240 align_file_position(); |
240 align_file_position(); |
241 size_t used = space->used_words(Metaspace::NonClassType) * BytesPerWord; |
241 size_t used = space->used_bytes_slow(Metaspace::NonClassType); |
242 size_t capacity = space->capacity_words(Metaspace::NonClassType) * BytesPerWord; |
242 size_t capacity = space->capacity_bytes_slow(Metaspace::NonClassType); |
243 struct FileMapInfo::FileMapHeader::space_info* si = &_header._space[i]; |
243 struct FileMapInfo::FileMapHeader::space_info* si = &_header._space[i]; |
244 write_region(i, (char*)space->bottom(), used, capacity, read_only, false); |
244 write_region(i, (char*)space->bottom(), used, capacity, read_only, false); |
245 } |
245 } |
246 |
246 |
247 |
247 |