equal
deleted
inserted
replaced
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 MemRegion mr(top(), hard_end()); |
103 CollectedHeap::fill_with_object(top(), hard_end()); |
104 SharedHeap::fill_region_with_object(mr); |
|
105 |
104 |
106 if (retire || ZeroTLAB) { // "Reset" the TLAB |
105 if (retire || ZeroTLAB) { // "Reset" the TLAB |
107 set_start(NULL); |
106 set_start(NULL); |
108 set_top(NULL); |
107 set_top(NULL); |
109 set_pf_top(NULL); |
108 set_pf_top(NULL); |