< prev index next >

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

Print this page

        

@@ -74,10 +74,11 @@
 class G1NewTracer;
 class G1OldTracer;
 class EvacuationFailedInfo;
 class nmethod;
 class Ticks;
+class FlexibleWorkGang;
 
 typedef OverflowTaskQueue<StarTask, mtGC>         RefToScanQueue;
 typedef GenericTaskQueueSet<RefToScanQueue, mtGC> RefToScanQueueSet;
 
 typedef int RegionIdx_t;   // needs to hold [ 0..max_regions() )

@@ -202,10 +203,12 @@
 
 private:
   // The one and only G1CollectedHeap, so static functions can find it.
   static G1CollectedHeap* _g1h;
 
+  FlexibleWorkGang* _workers;
+
   static size_t _humongous_object_threshold_in_words;
 
   // The secondary free list which contains regions that have been
   // freed up during the cleanup process. This will be appended to
   // the master free list when appropriate.

@@ -603,10 +606,11 @@
   // Enqueue any remaining discovered references
   // after processing.
   void enqueue_discovered_references(uint no_of_gc_workers);
 
 public:
+  FlexibleWorkGang* workers() const { return _workers; }
 
   G1Allocator* allocator() {
     return _allocator;
   }
 
< prev index next >