< prev index next >

src/share/vm/gc/g1/g1CollectedHeap.hpp

Print this page
rev 8688 : 8131319: Move G1Allocator::_summary_bytes_used back to G1CollectedHeap
Reviewed-by:

@@ -249,10 +249,19 @@
   HeapRegionManager _hrm;
 
   // Class that handles the different kinds of allocations.
   G1Allocator* _allocator;
 
+  // Outside of GC pauses, the number of bytes used in all regions other
+  // than the current allocation region(s).
+  size_t _summary_bytes_used;
+
+  void increase_used(size_t bytes);
+  void decrease_used(size_t bytes);
+
+  void set_used(size_t bytes);
+
   // Class that handles archive allocation ranges.
   G1ArchiveAllocator* _archive_allocator;
 
   // Statistics for each allocation context
   AllocationContextStats _allocation_context_stats;
< prev index next >