8202829: Implement CollectedHeap::get_safepoint_workers() for G1
authortschatzl
Mon, 14 May 2018 11:47:03 +0200
changeset 50096 4502902f343d
parent 50095 bf2f27b92064
child 50097 ed8a43d83fcc
8202829: Implement CollectedHeap::get_safepoint_workers() for G1 Summary: Use the parallel STW worker gang to do safepoint work. Reviewed-by: rkennke, eosterlund, pliden
src/hotspot/share/gc/g1/g1CollectedHeap.hpp
--- a/src/hotspot/share/gc/g1/g1CollectedHeap.hpp	Mon May 07 23:07:01 2018 +0200
+++ b/src/hotspot/share/gc/g1/g1CollectedHeap.hpp	Mon May 14 11:47:03 2018 +0200
@@ -1366,6 +1366,8 @@
   virtual const char* const* concurrent_phases() const;
   virtual bool request_concurrent_phase(const char* phase);
 
+  virtual WorkGang* get_safepoint_workers() { return _workers; }
+
   // The methods below are here for convenience and dispatch the
   // appropriate method depending on value of the given VerifyOption
   // parameter. The values for that parameter, and their meanings,