< prev index next >

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

Print this page
@@ -40,10 +40,14 @@
    volatile bool     _freed_regions;
    HeapRegionClaimer _hrclaimer;
  
    void set_freed_regions();
  
+ private:
+   template <bool ALT_FWD>
+   void prepare_serial_compaction_impl();
+ 
  public:
    G1FullGCPrepareTask(G1FullCollector* collector);
    void work(uint worker_id);
    void prepare_serial_compaction();
    bool has_freed_regions();

@@ -72,18 +76,20 @@
  
      bool do_heap_region(HeapRegion* hr);
      bool freed_regions();
    };
  
+   template <bool ALT_FWD>
    class G1PrepareCompactLiveClosure : public StackObj {
      G1FullGCCompactionPoint* _cp;
  
    public:
      G1PrepareCompactLiveClosure(G1FullGCCompactionPoint* cp);
      size_t apply(oop object);
    };
  
+   template <bool ALT_FWD>
    class G1RePrepareClosure : public StackObj {
      G1FullGCCompactionPoint* _cp;
      HeapRegion* _current;
  
    public:
< prev index next >