comparison src/share/vm/memory/threadLocalAllocBuffer.cpp @ 1165:2dd52dea6d28

6902115: G1:assert(ignore_max_completed||thread->is_Java_thread()||SafepointSynchronize::is_at_safepoint()) Summary: Remove invalid assert and mangle filler objects in TLABs that are being retired. Reviewed-by: ysr, jmasa
author johnc
date Tue, 12 Jan 2010 14:56:46 -0800
parents 0fbdb4381b99
children c18cbe5936b8
comparison
equal deleted inserted replaced
1149:0579c695832f 1165:2dd52dea6d28
98 // Waste accounting should be done in caller as appropriate; see, 98 // Waste accounting should be done in caller as appropriate; see,
99 // for example, clear_before_allocation(). 99 // for example, clear_before_allocation().
100 void ThreadLocalAllocBuffer::make_parsable(bool retire) { 100 void ThreadLocalAllocBuffer::make_parsable(bool retire) {
101 if (end() != NULL) { 101 if (end() != NULL) {
102 invariants(); 102 invariants();
103 CollectedHeap::fill_with_object(top(), hard_end()); 103 CollectedHeap::fill_with_object(top(), hard_end(), retire);
104 104
105 if (retire || ZeroTLAB) { // "Reset" the TLAB 105 if (retire || ZeroTLAB) { // "Reset" the TLAB
106 set_start(NULL); 106 set_start(NULL);
107 set_top(NULL); 107 set_top(NULL);
108 set_pf_top(NULL); 108 set_pf_top(NULL);