< prev index next >

src/hotspot/share/gc/shared/genCollectedHeap.hpp

Print this page
@@ -33,10 +33,11 @@
  
  class AdaptiveSizePolicy;
  class CardTableRS;
  class GCPolicyCounters;
  class GenerationSpec;
+ class SlidingForwarding;
  class StrongRootsScope;
  class SubTasksDone;
  class WorkerThreads;
  
  // A "GenCollectedHeap" is a CollectedHeap that uses generational

@@ -86,10 +87,12 @@
    bool _incremental_collection_failed;
  
    // In support of ExplicitGCInvokesConcurrent functionality
    unsigned int _full_collections_completed;
  
+   SlidingForwarding* _forwarding;
+ 
    // Collects the given generation.
    void collect_generation(Generation* gen, bool full, size_t size, bool is_tlab,
                            bool run_verification, bool clear_soft_refs);
  
    // Reserve aligned space for the heap as needed by the contained generations.

@@ -328,10 +331,14 @@
  
    // Convenience function to be used in situations where the heap type can be
    // asserted to be this type.
    static GenCollectedHeap* heap();
  
+   SlidingForwarding* forwarding() const {
+     return _forwarding;
+   }
+ 
    // The ScanningOption determines which of the roots
    // the closure is applied to:
    // "SO_None" does none;
    enum ScanningOption {
      SO_None                =  0x0,
< prev index next >