8071462: Remove G1ParGCAllocator::alloc_buffer_waste

Removed G1ParGCAllocator::alloc_buffer_waste, added method to obtain waste

Reviewed-by: tschatzl, sjohanss
This commit is contained in:
Michail Chernov 2015-04-22 17:05:00 +02:00 committed by Thomas Schatzl
parent 6d5aa2af43
commit 689d9a58b1
7 changed files with 77 additions and 55 deletions

View file

@ -95,8 +95,9 @@ G1ParScanThreadState::print_termination_stats(int i,
const double elapsed_ms = elapsed_time() * 1000.0;
const double s_roots_ms = strong_roots_time() * 1000.0;
const double term_ms = term_time() * 1000.0;
const size_t alloc_buffer_waste = _g1_par_allocator->alloc_buffer_waste();
const size_t undo_waste = _g1_par_allocator->undo_waste();
size_t alloc_buffer_waste = 0;
size_t undo_waste = 0;
_g1_par_allocator->waste(alloc_buffer_waste, undo_waste);
st->print_cr("%3d %9.2f %9.2f %6.2f "
"%9.2f %6.2f " SIZE_FORMAT_W(8) " "
SIZE_FORMAT_W(7) " " SIZE_FORMAT_W(7) " " SIZE_FORMAT_W(7),