mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8210119: Rename SubTasksDone::is_task_claimed
Renamed to try_claim_task and inverted result. Reviewed-by: coleenp, sjohanss
This commit is contained in:
parent
67b2c6fc66
commit
75a8e7d4e2
10 changed files with 50 additions and 49 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue