equal
deleted
inserted
replaced
61 class Metachunk; |
61 class Metachunk; |
62 class MetaspaceTracer; |
62 class MetaspaceTracer; |
63 class MetaWord; |
63 class MetaWord; |
64 class Mutex; |
64 class Mutex; |
65 class outputStream; |
65 class outputStream; |
|
66 class PrintCLDMetaspaceInfoClosure; |
66 class SpaceManager; |
67 class SpaceManager; |
67 class VirtualSpaceList; |
68 class VirtualSpaceList; |
68 |
69 |
69 // Metaspaces each have a SpaceManager and allocations |
70 // Metaspaces each have a SpaceManager and allocations |
70 // are done by the SpaceManager. Allocations are done |
71 // are done by the SpaceManager. Allocations are done |
85 friend class VM_CollectForMetadataAllocation; |
86 friend class VM_CollectForMetadataAllocation; |
86 friend class MetaspaceGC; |
87 friend class MetaspaceGC; |
87 friend class MetaspaceAux; |
88 friend class MetaspaceAux; |
88 friend class MetaspaceShared; |
89 friend class MetaspaceShared; |
89 friend class CollectorPolicy; |
90 friend class CollectorPolicy; |
|
91 friend class PrintCLDMetaspaceInfoClosure; |
90 |
92 |
91 public: |
93 public: |
92 enum MetadataType { |
94 enum MetadataType { |
93 ClassType, |
95 ClassType, |
94 NonClassType, |
96 NonClassType, |
345 static size_t min_chunk_size_words(); |
347 static size_t min_chunk_size_words(); |
346 static size_t min_chunk_size_bytes() { |
348 static size_t min_chunk_size_bytes() { |
347 return min_chunk_size_words() * BytesPerWord; |
349 return min_chunk_size_words() * BytesPerWord; |
348 } |
350 } |
349 |
351 |
|
352 static void print_metadata_for_nmt(outputStream* out, size_t scale = K); |
|
353 |
350 static bool has_chunk_free_list(Metaspace::MetadataType mdtype); |
354 static bool has_chunk_free_list(Metaspace::MetadataType mdtype); |
351 static MetaspaceChunkFreeListSummary chunk_free_list_summary(Metaspace::MetadataType mdtype); |
355 static MetaspaceChunkFreeListSummary chunk_free_list_summary(Metaspace::MetadataType mdtype); |
352 |
356 |
353 // Print change in used metadata. |
357 // Print change in used metadata. |
354 static void print_metaspace_change(size_t prev_metadata_used); |
358 static void print_metaspace_change(size_t prev_metadata_used); |