src/share/vm/memory/metablock.cpp

changeset 4715
5939f5953b45
parent 4712
3efdfd6ddbf2
child 5705
335b388c4b28
equal deleted inserted replaced
4714:35ef86296a5d 4715:5939f5953b45
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 }

mercurial