8202829: Implement CollectedHeap::get_safepoint_workers() for G1
Summary: Use the parallel STW worker gang to do safepoint work.
Reviewed-by: rkennke, eosterlund, pliden
--- 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,