comparison src/share/vm/memory/threadLocalAllocBuffer.cpp @ 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 7848fc12602b
children
comparison
equal deleted inserted replaced
21049:319fbbdb8fb1 21050:2fd31d8e6b58
42 42
43 void ThreadLocalAllocBuffer::clear_before_allocation() { 43 void ThreadLocalAllocBuffer::clear_before_allocation() {
44 _slow_refill_waste += (unsigned)remaining(); 44 _slow_refill_waste += (unsigned)remaining();
45 // In debug mode we expect the storage above top to be uninitialized 45 // In debug mode we expect the storage above top to be uninitialized
46 // or filled with a padding object. 46 // or filled with a padding object.
47 assert(top() == NULL || *(intptr_t*)top() != 0, "overzeroing detected"); 47 assert(!ZapUnusedHeapArea || top() == NULL || *(intptr_t*)top() != 0, "overzeroing detected");
48 make_parsable(true); // also retire the TLAB 48 make_parsable(true); // also retire the TLAB
49 } 49 }
50 50
51 void ThreadLocalAllocBuffer::accumulate_statistics_before_gc() { 51 void ThreadLocalAllocBuffer::accumulate_statistics_before_gc() {
52 global_stats()->initialize(); 52 global_stats()->initialize();