mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
Merge
This commit is contained in:
commit
315ec64dce
129 changed files with 2111 additions and 2336 deletions
|
@ -157,8 +157,14 @@ HeapWord* CollectedHeap::allocate_from_tlab_slow(Thread* thread, size_t size) {
|
|||
// ..and clear it.
|
||||
Copy::zero_to_words(obj, new_tlab_size);
|
||||
} else {
|
||||
// ...and clear just the allocated object.
|
||||
Copy::zero_to_words(obj, size);
|
||||
// ...and zap just allocated object.
|
||||
#ifdef ASSERT
|
||||
// Skip mangling the space corresponding to the object header to
|
||||
// ensure that the returned space is not considered parsable by
|
||||
// any concurrent GC thread.
|
||||
size_t hdr_size = oopDesc::header_size();
|
||||
Copy::fill_to_words(obj + hdr_size, new_tlab_size - hdr_size, badHeapWordVal);
|
||||
#endif // ASSERT
|
||||
}
|
||||
thread->tlab().fill(obj, obj + size, new_tlab_size);
|
||||
return obj;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue