Mercurial > hg > truffle
comparison src/share/vm/memory/threadLocalAllocBuffer.inline.hpp @ 1571:2d127394260e
6916623: Align object to 16 bytes to use Compressed Oops with java heap up to 64Gb
Summary: Added new product ObjectAlignmentInBytes flag to control object alignment.
Reviewed-by: twisti, ysr, iveresov
author | kvn |
---|---|
date | Thu, 27 May 2010 18:01:56 -0700 |
parents | 2dd52dea6d28 |
children | e9ff18c4ace7 |
comparison
equal
deleted
inserted
replaced
1570:de91a2f25c7e | 1571:2d127394260e |
---|---|
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); |