Mercurial > hg > graal-jvmci-8
diff src/share/vm/memory/threadLocalAllocBuffer.cpp @ 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 | 2fd31d8e6b58 |
children | 9ad3b2d1e7cd |
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 }