8214235: arm32: assertion in collectedHeap.cpp: attempt to clean empty remainder
authorbulasevich
Tue, 22 Jan 2019 10:42:41 +0300
changeset 53414 fe8991950105
parent 53413 5bbd86b1cfbb
child 53415 698ee6095c76
8214235: arm32: assertion in collectedHeap.cpp: attempt to clean empty remainder Reviewed-by: phh, pliden
src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp
--- 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() {