< prev index next >
src/hotspot/share/gc/g1/g1ConcurrentMark.cpp
Print this page
rev 53546 : Remove TaskTerminator's assignment operator
*** 586,596 ****
assert(active_tasks <= _max_num_tasks, "we should not have more");
_num_active_tasks = active_tasks;
// Need to update the three data structures below according to the
// number of active threads for this phase.
! _terminator = TaskTerminator((int) active_tasks, _task_queues);
_first_overflow_barrier_sync.set_n_workers((int) active_tasks);
_second_overflow_barrier_sync.set_n_workers((int) active_tasks);
}
void G1ConcurrentMark::set_concurrency_and_phase(uint active_tasks, bool concurrent) {
--- 586,596 ----
assert(active_tasks <= _max_num_tasks, "we should not have more");
_num_active_tasks = active_tasks;
// Need to update the three data structures below according to the
// number of active threads for this phase.
! _terminator.terminator()->reset_for_reuse((int) active_tasks);
_first_overflow_barrier_sync.set_n_workers((int) active_tasks);
_second_overflow_barrier_sync.set_n_workers((int) active_tasks);
}
void G1ConcurrentMark::set_concurrency_and_phase(uint active_tasks, bool concurrent) {
< prev index next >