comparison src/share/vm/memory/metaspace.hpp @ 12236:c4c768305a8f

8024638: Count and expose the amount of committed memory in the metaspaces Reviewed-by: brutisso, ehelin
author stefank
date Thu, 12 Sep 2013 10:15:54 +0200
parents d6c266999345
children b960c9df4f11
comparison
equal deleted inserted replaced
12235:d6c266999345 12236:c4c768305a8f
290 } 290 }
291 291
292 static size_t free_bytes(); 292 static size_t free_bytes();
293 static size_t free_bytes(Metaspace::MetadataType mdtype); 293 static size_t free_bytes(Metaspace::MetadataType mdtype);
294 294
295 // Total capacity in all Metaspaces
296 static size_t reserved_bytes(Metaspace::MetadataType mdtype); 295 static size_t reserved_bytes(Metaspace::MetadataType mdtype);
297 static size_t reserved_bytes() { 296 static size_t reserved_bytes() {
298 return reserved_bytes(Metaspace::ClassType) + 297 return reserved_bytes(Metaspace::ClassType) +
299 reserved_bytes(Metaspace::NonClassType); 298 reserved_bytes(Metaspace::NonClassType);
299 }
300
301 static size_t committed_bytes(Metaspace::MetadataType mdtype);
302 static size_t committed_bytes() {
303 return committed_bytes(Metaspace::ClassType) +
304 committed_bytes(Metaspace::NonClassType);
300 } 305 }
301 306
302 static size_t min_chunk_size_words(); 307 static size_t min_chunk_size_words();
303 static size_t min_chunk_size_bytes() { 308 static size_t min_chunk_size_bytes() {
304 return min_chunk_size_words() * BytesPerWord; 309 return min_chunk_size_words() * BytesPerWord;