< 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,39 **** #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. --- 27,36 ----
*** 66,81 **** 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; --- 63,72 ----
*** 108,122 **** // 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 --- 99,106 ----
< prev index next >