63 if (p == NULL) { |
63 if (p == NULL) { |
64 return NULL; |
64 return NULL; |
65 } |
65 } |
66 |
66 |
67 Metablock* result = (Metablock*) p; |
67 Metablock* result = (Metablock*) p; |
|
68 |
|
69 // Clear the memory |
|
70 Copy::fill_to_aligned_words((HeapWord*)result, word_size); |
68 #ifdef ASSERT |
71 #ifdef ASSERT |
69 // Add just to catch missing initializations |
|
70 Copy::fill_to_words((HeapWord*) result, word_size, 0xf1f1f1f1); |
|
71 result->set_word_size(word_size); |
72 result->set_word_size(word_size); |
72 #endif |
73 #endif |
73 return result; |
74 return result; |
74 } |
75 } |