< prev index next >

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

Print this page
@@ -83,10 +83,11 @@
  class HeapRegion;
  class MemoryPool;
  class nmethod;
  class ReferenceProcessor;
  class STWGCTimer;
+ class SlidingForwarding;
  class WorkerThreads;
  
  typedef OverflowTaskQueue<ScannerTask, mtGC>           G1ScannerTasksQueue;
  typedef GenericTaskQueueSet<G1ScannerTasksQueue, mtGC> G1ScannerTasksQueueSet;
  

@@ -227,10 +228,12 @@
    G1EvacStats _old_evac_stats;
  
    // Helper for monitoring and management support.
    G1MonitoringSupport* _monitoring_support;
  
+   SlidingForwarding* _forwarding;
+ 
    uint _num_humongous_objects; // Current amount of (all) humongous objects found in the heap.
    uint _num_humongous_reclaim_candidates; // Number of humongous object eager reclaim candidates.
  public:
    uint num_humongous_objects() const { return _num_humongous_objects; }
    uint num_humongous_reclaim_candidates() const { return _num_humongous_reclaim_candidates; }

@@ -240,10 +243,14 @@
  
    bool should_sample_collection_set_candidates() const;
    void set_collection_set_candidates_stats(G1SegmentedArrayMemoryStats& stats);
    void set_young_gen_card_set_stats(const G1SegmentedArrayMemoryStats& stats);
  
+   SlidingForwarding* forwarding() const {
+     return _forwarding;
+   }
+ 
  private:
  
    G1HRPrinter _hr_printer;
  
    // Return true if an explicit GC should start a concurrent cycle instead
< prev index next >