hotspot/src/share/vm/gc/g1/g1RootProcessor.hpp
changeset 30868 c1b24f26deed
parent 30764 fec48bf5a827
child 30869 d5cbedffb50b
--- a/hotspot/src/share/vm/gc/g1/g1RootProcessor.hpp	Thu May 21 09:10:47 2015 +0200
+++ b/hotspot/src/share/vm/gc/g1/g1RootProcessor.hpp	Thu May 21 09:23:00 2015 +0200
@@ -85,7 +85,7 @@
                         uint worker_i);
 
 public:
-  G1RootProcessor(G1CollectedHeap* g1h);
+  G1RootProcessor(G1CollectedHeap* g1h, uint n_workers);
 
   // Apply closures to the strongly and weakly reachable roots in the system
   // in a single pass.
@@ -114,8 +114,11 @@
                             OopClosure* scan_non_heap_weak_roots,
                             uint worker_i);
 
-  // Inform the root processor about the number of worker threads
+  // Inform SubTaskDone about the number of worker threads.
   void set_num_workers(uint active_workers);
+
+  // Number of worker threads used by the root processor.
+  uint n_workers() const;
 };
 
 #endif // SHARE_VM_GC_G1_G1ROOTPROCESSOR_HPP