hotspot/src/share/vm/memory/filemap.cpp
changeset 17109 90e6c31bbbe4
parent 16430 882cddc35bec
child 18483 c021907fa0a7
equal deleted inserted replaced
17108:cf72dcf9a8f2 17109:90e6c31bbbe4
   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