8214235: arm32: assertion in collectedHeap.cpp: attempt to clean empty remainder
Reviewed-by: phh, pliden
--- a/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp Mon Jan 21 16:56:13 2019 -0500
+++ b/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp Tue Jan 22 10:42:41 2019 +0300
@@ -91,7 +91,9 @@
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() {