changeset 50645:4502902f343d

8202829: Implement CollectedHeap::get_safepoint_workers() for G1 Summary: Use the parallel STW worker gang to do safepoint work. Reviewed-by: rkennke, eosterlund, pliden
author tschatzl
date Mon, 14 May 2018 11:47:03 +0200
parents bf2f27b92064
children ed8a43d83fcc
files src/hotspot/share/gc/g1/g1CollectedHeap.hpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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,