8204685: Abstraction for TLAB dummy object

Reviewed-by: tschatzl, shade
This commit is contained in:
Roman Kennke 2018-06-13 10:15:35 +02:00
parent 74e093f058
commit cc206eaca5
4 changed files with 9 additions and 3 deletions

View file

@ -114,7 +114,7 @@ void ThreadLocalAllocBuffer::make_parsable(bool retire, bool zap) {
myThread()->incr_allocated_bytes(used_bytes());
}
CollectedHeap::fill_with_object(top(), hard_end(), retire && zap);
Universe::heap()->fill_with_dummy_object(top(), hard_end(), retire && zap);
if (retire || ZeroTLAB) { // "Reset" the TLAB
set_start(NULL);