Mercurial > hg > truffle
comparison src/share/vm/memory/metaspace.hpp @ 17771:9fdaa79b0c27
8036703: Add trace event with statistics for the metaspace chunk free lists
Reviewed-by: stefank, mgerdin, coleenp, egahlin
author | ehelin |
---|---|
date | Fri, 21 Mar 2014 10:31:51 +0100 |
parents | 5af31f70a866 |
children | 62c54fcc0a35 |
comparison
equal
deleted
inserted
replaced
17770:5af31f70a866 | 17771:9fdaa79b0c27 |
---|---|
24 #ifndef SHARE_VM_MEMORY_METASPACE_HPP | 24 #ifndef SHARE_VM_MEMORY_METASPACE_HPP |
25 #define SHARE_VM_MEMORY_METASPACE_HPP | 25 #define SHARE_VM_MEMORY_METASPACE_HPP |
26 | 26 |
27 #include "memory/allocation.hpp" | 27 #include "memory/allocation.hpp" |
28 #include "memory/memRegion.hpp" | 28 #include "memory/memRegion.hpp" |
29 #include "memory/metaspaceChunkFreeListSummary.hpp" | |
29 #include "runtime/virtualspace.hpp" | 30 #include "runtime/virtualspace.hpp" |
30 #include "utilities/exceptions.hpp" | 31 #include "utilities/exceptions.hpp" |
31 | 32 |
32 // Metaspace | 33 // Metaspace |
33 // | 34 // |
352 static size_t min_chunk_size_words(); | 353 static size_t min_chunk_size_words(); |
353 static size_t min_chunk_size_bytes() { | 354 static size_t min_chunk_size_bytes() { |
354 return min_chunk_size_words() * BytesPerWord; | 355 return min_chunk_size_words() * BytesPerWord; |
355 } | 356 } |
356 | 357 |
358 static bool has_chunk_free_list(Metaspace::MetadataType mdtype); | |
359 static MetaspaceChunkFreeListSummary chunk_free_list_summary(Metaspace::MetadataType mdtype); | |
360 | |
357 // Print change in used metadata. | 361 // Print change in used metadata. |
358 static void print_metaspace_change(size_t prev_metadata_used); | 362 static void print_metaspace_change(size_t prev_metadata_used); |
359 static void print_on(outputStream * out); | 363 static void print_on(outputStream * out); |
360 static void print_on(outputStream * out, Metaspace::MetadataType mdtype); | 364 static void print_on(outputStream * out, Metaspace::MetadataType mdtype); |
361 | 365 |