< prev index next >

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

Print this page
rev 57897 : imported patch 8238220-rename-owsttaskterminator
rev 57898 : [mq]: 8238229-remove-tracespinning-code

@@ -27,13 +27,10 @@
 
 #include "memory/allocation.hpp"
 #include "runtime/mutex.hpp"
 #include "runtime/thread.hpp"
 
-// Define this to enable additional tracing probes.
-#undef TRACESPINNING
-
 class TaskQueueSetSuper;
 class TerminatorTerminator;
 
 /*
  * Provides a task termination protocol.

@@ -66,16 +63,10 @@
   void yield();
 
   Monitor*    _blocker;
   Thread*     _spin_master;
 
-#ifdef TRACESPINNING
-  static uint _total_yields;
-  static uint _total_spins;
-  static uint _total_peeks;
-#endif
-
   // If we should exit current termination protocol
   bool exit_termination(size_t tasks, TerminatorTerminator* terminator);
 
   size_t tasks_in_queue_set() const;
 

@@ -108,15 +99,8 @@
   // the terminator is finished.
   void reset_for_reuse();
   // Same as above but the number of parallel threads is set to the
   // given number.
   void reset_for_reuse(uint n_threads);
-
-#ifdef TRACESPINNING
-  static uint total_yields() { return _total_yields; }
-  static uint total_spins() { return _total_spins; }
-  static uint total_peeks() { return _total_peeks; }
-  static void print_termination_counts();
-#endif
 };
 
 #endif // SHARE_GC_SHARED_TASKTERMINATOR_HPP
< prev index next >