< prev index next >

src/hotspot/share/memory/metachunk.hpp

Print this page
rev 49873 : [mq]: 8201572-improve-metaspace-reporting

@@ -108,10 +108,13 @@
 
 // Utility functions.
 size_t get_size_for_nonhumongous_chunktype(ChunkIndex chunk_type, bool is_class);
 ChunkIndex get_chunk_type_by_size(size_t size, bool is_class);
 
+ChunkIndex next_chunk_index(ChunkIndex i);
+ChunkIndex prev_chunk_index(ChunkIndex i);
+
 // Returns a descriptive name for a chunk type.
 const char* chunk_size_name(ChunkIndex index);
 
 // Verify chunk type.
 inline bool is_valid_chunktype(ChunkIndex index) {

@@ -182,11 +185,11 @@
   // the space.
 
   // Alignment of each allocation in the chunks.
   static size_t object_alignment();
 
-  // Size of the Metachunk header, including alignment.
+  // Size of the Metachunk header, in words, including alignment.
   static size_t overhead();
 
   Metachunk(ChunkIndex chunktype, bool is_class, size_t word_size, VirtualSpaceNode* container);
 
   MetaWord* allocate(size_t word_size);
< prev index next >