48 // the Chunk after the header for the Chunk) where as Metachunks |
48 // the Chunk after the header for the Chunk) where as Metachunks |
49 // point to space in a VirtualSpace. To replace Metachunks with |
49 // point to space in a VirtualSpace. To replace Metachunks with |
50 // Chunks, change Chunks so that they can be allocated out of a VirtualSpace. |
50 // Chunks, change Chunks so that they can be allocated out of a VirtualSpace. |
51 size_t Metablock::_min_block_byte_size = sizeof(Metablock); |
51 size_t Metablock::_min_block_byte_size = sizeof(Metablock); |
52 |
52 |
53 #ifdef ASSERT |
|
54 size_t Metablock::_overhead = |
|
55 Chunk::aligned_overhead_size(sizeof(Metablock)) / BytesPerWord; |
|
56 #else |
|
57 size_t Metablock::_overhead = 0; |
|
58 #endif |
|
59 |
|
60 // New blocks returned by the Metaspace are zero initialized. |
53 // New blocks returned by the Metaspace are zero initialized. |
61 // We should fix the constructors to not assume this instead. |
54 // We should fix the constructors to not assume this instead. |
62 Metablock* Metablock::initialize(MetaWord* p, size_t word_size) { |
55 Metablock* Metablock::initialize(MetaWord* p, size_t word_size) { |
63 if (p == NULL) { |
56 if (p == NULL) { |
64 return NULL; |
57 return NULL; |