< prev index next >
src/share/vm/gc/shared/collectedHeap.hpp
Print this page
rev 13047 : [mq]: 8180932.patch
@@ -602,10 +602,20 @@
//
// Returns true when the phase is reached. Returns false for an
// unknown phase. The default implementation returns false.
virtual bool request_concurrent_phase(const char* phase);
+ // Provides a thread pool to SafepointSynchronize to use
+ // for parallel safepoint cleanup.
+ // GCs that use a GC worker thread pool may want to share
+ // it for use during safepoint cleanup. This is only possible
+ // if the GC can pause and resume concurrent work (e.g. G1
+ // concurrent marking) for an intermittent non-GC safepoint.
+ // If this method returns NULL, SafepointSynchronize will
+ // create and initialize a separate thread pool.
+ virtual WorkGang* get_safepoint_workers() { return NULL; }
+
// Non product verification and debugging.
#ifndef PRODUCT
// Support for PromotionFailureALot. Return true if it's time to cause a
// promotion failure. The no-argument version uses
// this->_promotion_failure_alot_count as the counter.
< prev index next >