changeset 54478:fe8991950105

8214235: arm32: assertion in collectedHeap.cpp: attempt to clean empty remainder Reviewed-by: phh, pliden
author bulasevich
date Tue, 22 Jan 2019 10:42:41 +0300
parents 5bbd86b1cfbb
children 698ee6095c76
files src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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() {