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); |