< prev index next >
src/hotspot/share/gc/shared/taskTerminator.hpp
Print this page
rev 60302 : [mq]: 8245721-lkorinth-review
*** 25,36 ****
#ifndef SHARE_GC_SHARED_TASKTERMINATOR_HPP
#define SHARE_GC_SHARED_TASKTERMINATOR_HPP
#include "memory/allocation.hpp"
#include "memory/padded.hpp"
- class Monitor;
class TaskQueueSetSuper;
class TerminatorTerminator;
class Thread;
/*
--- 25,36 ----
#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 TaskQueueSetSuper;
class TerminatorTerminator;
class Thread;
/*
*** 68,80 ****
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;
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).
--- 68,78 ----
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;
! 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 >