test/hotspot/gtest/gc/shared/test_ptrQueueBufferAllocator.cpp
changeset 59249 29b0d0b61615
parent 59247 56bf71d64d51
equal deleted inserted replaced
59248:e92153ed8bdc 59249:29b0d0b61615
   155       _cbl->push(node);
   155       _cbl->push(node);
   156       ++_allocations;
   156       ++_allocations;
   157       ThreadBlockInVM tbiv(this); // Safepoint check.
   157       ThreadBlockInVM tbiv(this); // Safepoint check.
   158     }
   158     }
   159     tty->print_cr("allocations: " SIZE_FORMAT, _allocations);
   159     tty->print_cr("allocations: " SIZE_FORMAT, _allocations);
   160     Atomic::add(_allocations, _total_allocations);
   160     Atomic::add(_total_allocations, _allocations);
   161   }
   161   }
   162 };
   162 };
   163 
   163 
   164 // Simulate a GC thread, taking buffers from the completed buffer list
   164 // Simulate a GC thread, taking buffers from the completed buffer list
   165 // and returning them to the allocator.
   165 // and returning them to the allocator.