From 83cd7a3fc1b077d1abff2bb7314282382b444838 Mon Sep 17 00:00:00 2001 From: Boris Ulasevich Date: Tue, 22 Jan 2019 10:42:41 +0300 Subject: [PATCH] 8214235: arm32: assertion in collectedHeap.cpp: attempt to clean empty remainder Reviewed-by: phh, pliden --- src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp b/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp index 408234f13fa..5b12c3f5fc7 100644 --- a/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp +++ b/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp @@ -91,7 +91,9 @@ void ThreadLocalAllocBuffer::accumulate_and_reset_statistics(ThreadLocalAllocSta void ThreadLocalAllocBuffer::insert_filler() { assert(end() != NULL, "Must not be retired"); - Universe::heap()->fill_with_dummy_object(top(), hard_end(), true); + if (top() < hard_end()) { + Universe::heap()->fill_with_dummy_object(top(), hard_end(), true); + } } void ThreadLocalAllocBuffer::make_parsable() {