< prev index next >

src/hotspot/share/gc/g1/g1ParScanThreadState.cpp

Print this page
rev 53774 : imported patch 8219096-merge-termination-stats-logging

@@ -104,12 +104,16 @@
   delete _closures;
   FREE_C_HEAP_ARRAY(size_t, _surviving_young_words_base);
   delete[] _oops_into_optional_regions;
 }
 
-void G1ParScanThreadState::waste(size_t& wasted, size_t& undo_wasted) {
-  _plab_allocator->waste(wasted, undo_wasted);
+size_t G1ParScanThreadState::lab_waste() const {
+  return _plab_allocator->waste() * HeapWordSize;
+}
+
+size_t G1ParScanThreadState::lab_undo_waste() const {
+  return _plab_allocator->undo_waste() * HeapWordSize;
 }
 
 #ifdef ASSERT
 bool G1ParScanThreadState::verify_ref(narrowOop* ref) const {
   assert(ref != NULL, "invariant");
< prev index next >