comparison src/share/vm/memory/filemap.cpp @ 10183:868d87ed63c8

8008966: NPG: Inefficient Metaspace counter functions cause large young GC regressions Reviewed-by: mgerdin, coleenp
author jmasa
date Tue, 12 Feb 2013 14:15:45 -0800
parents 91bf0bdae37b
children 221df7e37535
comparison
equal deleted inserted replaced
10182:5c93c1f61226 10183:868d87ed63c8
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