src/share/vm/memory/threadLocalAllocBuffer.inline.hpp

changeset 1934
e9ff18c4ace7
parent 1907
c18cbe5936b8
parent 1926
2d127394260e
child 2314
f95d63e2154a
equal deleted inserted replaced
1917:dfe27f03244a 1934:e9ff18c4ace7
29 // successful thread-local allocation 29 // successful thread-local allocation
30 #ifdef ASSERT 30 #ifdef ASSERT
31 // Skip mangling the space corresponding to the object header to 31 // Skip mangling the space corresponding to the object header to
32 // ensure that the returned space is not considered parsable by 32 // ensure that the returned space is not considered parsable by
33 // any concurrent GC thread. 33 // any concurrent GC thread.
34 size_t hdr_size = CollectedHeap::min_fill_size(); 34 size_t hdr_size = oopDesc::header_size();
35 Copy::fill_to_words(obj + hdr_size, size - hdr_size, badHeapWordVal); 35 Copy::fill_to_words(obj + hdr_size, size - hdr_size, badHeapWordVal);
36 #endif // ASSERT 36 #endif // ASSERT
37 // This addition is safe because we know that top is 37 // This addition is safe because we know that top is
38 // at least size below end, so the add can't wrap. 38 // at least size below end, so the add can't wrap.
39 set_top(obj + size); 39 set_top(obj + size);

mercurial