--- old/src/share/vm/gc/shared/concurrentGCThread.hpp 2016-03-09 16:00:24.878905838 -0500 +++ new/src/share/vm/gc/shared/concurrentGCThread.hpp 2016-03-09 16:00:24.735907626 -0500 @@ -30,11 +30,11 @@ class ConcurrentGCThread: public NamedThread { friend class VMStructs; - -protected: + bool volatile _should_terminate; bool _has_terminated; - + +protected: // Create and start the thread (setting it's priority.) void create_and_start(ThreadPriority prio = NearMaxPriority); @@ -65,6 +65,9 @@ // shutdown following termination protocol virtual void stop(); + + bool should_terminate() { return _should_terminate; } + bool has_terminated() { return _has_terminated; } }; // The SurrogateLockerThread is used by concurrent GC threads for