8210119: Rename SubTasksDone::is_task_claimed

Renamed to try_claim_task and inverted result.

Reviewed-by: coleenp, sjohanss
This commit is contained in:
Kim Barrett 2018-08-30 16:16:19 -04:00
parent 67b2c6fc66
commit 75a8e7d4e2
10 changed files with 50 additions and 49 deletions

View file

@ -47,7 +47,7 @@ void WeakProcessor::Task::work(uint worker_id,
FOR_EACH_WEAK_PROCESSOR_PHASE(phase) {
if (WeakProcessorPhases::is_serial(phase)) {
uint serial_index = WeakProcessorPhases::serial_index(phase);
if (!_serial_phases_done.is_task_claimed(serial_index)) {
if (_serial_phases_done.try_claim_task(serial_index)) {
WeakProcessorPhaseTimeTracker pt(_phase_times, phase);
WeakProcessorPhases::processor(phase)(is_alive, keep_alive);
}