changeset 22409:a77ab2624d17

Make assertion in ThreadLocalAllocBuffer::clear_before_allocation less strict when BlockZeroing is used
author Stefan Anzinger <stefan.anzinger@oracle.com>
date Fri, 07 Aug 2015 10:02:52 +0200
parents b1c2b695554b
children 7dd034e68f2e
files src/share/vm/memory/threadLocalAllocBuffer.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/memory/threadLocalAllocBuffer.cpp	Fri Aug 07 09:46:57 2015 +0200
+++ b/src/share/vm/memory/threadLocalAllocBuffer.cpp	Fri Aug 07 10:02:52 2015 +0200
@@ -44,7 +44,7 @@
   _slow_refill_waste += (unsigned)remaining();
   // In debug mode we expect the storage above top to be uninitialized
   // or filled with a padding object.
-  assert(!ZapUnusedHeapArea || top() == NULL || *(intptr_t*)top() != 0, "overzeroing detected");
+  assert(!ZapUnusedHeapArea || VM_Version::reserve_for_allocation_prefetch() > 0 || top() == NULL || *(intptr_t*)top() != 0, "overzeroing detected");
   make_parsable(true);   // also retire the TLAB
 }