src/share/vm/gc/shared/threadLocalAllocBuffer.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff src/share/vm/gc/shared/threadLocalAllocBuffer.cpp
src/share/vm/gc/shared/threadLocalAllocBuffer.cpp
Print this page
*** 38,47 ****
--- 38,50 ----
unsigned ThreadLocalAllocBuffer::_target_refills = 0;
GlobalTLABStats* ThreadLocalAllocBuffer::_global_stats = NULL;
void ThreadLocalAllocBuffer::clear_before_allocation() {
_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 || VM_Version::reserve_for_allocation_prefetch() > 0 || top() == NULL || *(intptr_t*)top() != 0, "overzeroing detected");
make_parsable(true); // also retire the TLAB
}
void ThreadLocalAllocBuffer::accumulate_statistics_before_gc() {
global_stats()->initialize();
src/share/vm/gc/shared/threadLocalAllocBuffer.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File