< prev index next >

src/hotspot/share/gc/shared/taskTerminator.hpp

Print this page
rev 60302 : [mq]: 8245721-lkorinth-review

@@ -25,12 +25,12 @@
 #ifndef SHARE_GC_SHARED_TASKTERMINATOR_HPP
 #define SHARE_GC_SHARED_TASKTERMINATOR_HPP
 
 #include "memory/allocation.hpp"
 #include "memory/padded.hpp"
+#include "runtime/mutex.hpp"
 
-class Monitor;
 class TaskQueueSetSuper;
 class TerminatorTerminator;
 class Thread;
 
 /*

@@ -68,13 +68,11 @@
   volatile uint _offered_termination;
   DEFINE_PAD_MINUS_SIZE(1, DEFAULT_CACHE_LINE_SIZE, sizeof(volatile uint));
 
   void assert_queue_set_empty() const NOT_DEBUG_RETURN;
 
-  void yield();
-
-  Monitor* _blocker;
+  Monitor _blocker;
   Thread* _spin_master;
 
   // Prepare for return from offer_termination. Gives up the spin master token
   // and wakes up up to tasks threads waiting on _blocker (the default value
   // means to wake up everyone).
< prev index next >