< prev index next >

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

Print this page
rev 57895 : [mq]: 8215297-remove-ptt
rev 57896 : imported patch 8215297-some-cleanup

*** 23,40 **** * */ #ifndef SHARE_GC_SHARED_OWSTTASKTERMINATOR_HPP #define SHARE_GC_SHARED_OWSTTASKTERMINATOR_HPP - #include "gc/shared/taskqueue.hpp" #include "memory/allocation.hpp" #include "runtime/mutex.hpp" #include "runtime/thread.hpp" // Define this to enable additional tracing probes. #undef TRACESPINNING /* * Provides a task termination protocol. OWST stands for Optimized Work Stealing Threads * * This is an enhanced implementation of Google's work stealing task termination * protocol, which is described in the paper: --- 23,42 ---- * */ #ifndef SHARE_GC_SHARED_OWSTTASKTERMINATOR_HPP #define SHARE_GC_SHARED_OWSTTASKTERMINATOR_HPP #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. OWST stands for Optimized Work Stealing Threads * * This is an enhanced implementation of Google's work stealing task termination * protocol, which is described in the paper:
*** 71,81 **** #endif // If we should exit current termination protocol bool exit_termination(size_t tasks, TerminatorTerminator* terminator); ! size_t tasks_in_queue_set() { return _queue_set->tasks(); } // Perform spin-master task. // Return true if termination condition is detected, otherwise return false bool do_spin_master_work(TerminatorTerminator* terminator); --- 73,83 ---- #endif // If we should exit current termination protocol bool exit_termination(size_t tasks, TerminatorTerminator* terminator); ! size_t tasks_in_queue_set() const; // Perform spin-master task. // Return true if termination condition is detected, otherwise return false bool do_spin_master_work(TerminatorTerminator* terminator);
< prev index next >