hotspot/src/share/vm/memory/threadLocalAllocBuffer.cpp
changeset 1668 8ec481b8f514
parent 1 489c9b5090e2
child 2105 347008ce7984
equal deleted inserted replaced
1667:fc79935c3055 1668:8ec481b8f514
    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);