< prev index next >
src/share/vm/gc/shared/workgroup.hpp
Print this page
rev 10742 : Make fields used in lock-free algorithms volatile
*** 283,295 ****
// A class to manage claiming of subtasks within a group of tasks. The
// subtasks will be identified by integer indices, usually elements of an
// enumeration type.
class SubTasksDone: public CHeapObj<mtInternal> {
! uint* _tasks;
uint _n_tasks;
! uint _threads_completed;
#ifdef ASSERT
volatile uint _claimed;
#endif
// Set all tasks to unclaimed.
--- 283,295 ----
// A class to manage claiming of subtasks within a group of tasks. The
// subtasks will be identified by integer indices, usually elements of an
// enumeration type.
class SubTasksDone: public CHeapObj<mtInternal> {
! volatile uint* _tasks;
uint _n_tasks;
! volatile uint _threads_completed;
#ifdef ASSERT
volatile uint _claimed;
#endif
// Set all tasks to unclaimed.
< prev index next >