comparison src/share/vm/memory/metablock.cpp @ 12237:335b388c4b28

8024651: Remove the incorrect usage of Metablock::overhead() Reviewed-by: brutisso, mgerdin, coleenp, jmasa
author stefank
date Fri, 13 Sep 2013 22:21:06 +0200
parents 5939f5953b45
children
comparison
equal deleted inserted replaced
12236:c4c768305a8f 12237:335b388c4b28
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;