< prev index next >
src/hotspot/share/memory/metachunk.hpp
Print this page
rev 49870 : 8201572: Improve Metaspace reporting
Reviewed-by:
*** 108,117 ****
--- 108,120 ----
// 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,192 ****
// the space.
// Alignment of each allocation in the chunks.
static size_t object_alignment();
! // Size of the Metachunk header, including alignment.
static size_t overhead();
Metachunk(ChunkIndex chunktype, bool is_class, size_t word_size, VirtualSpaceNode* container);
MetaWord* allocate(size_t word_size);
--- 185,195 ----
// the space.
// Alignment of each allocation in the chunks.
static size_t object_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 >