changeset 21050:2fd31d8e6b58

Relax assert about over zeroing when ZapUnusedHeapArea is disabled
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Wed, 15 Apr 2015 11:09:22 -0700
parents 319fbbdb8fb1
children 50fe6a0c6f1d
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	Wed Apr 15 11:07:53 2015 -0700
+++ b/src/share/vm/memory/threadLocalAllocBuffer.cpp	Wed Apr 15 11:09:22 2015 -0700
@@ -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(top() == NULL || *(intptr_t*)top() != 0, "overzeroing detected");
+  assert(!ZapUnusedHeapArea || top() == NULL || *(intptr_t*)top() != 0, "overzeroing detected");
   make_parsable(true);   // also retire the TLAB
 }