< prev index next >

src/hotspot/share/gc/shared/workgroup.cpp

Print this page

        

*** 151,161 **** WorkData worker_wait_for_task() { // Wait for the coordinator to dispatch a task. _start_semaphore->wait(); ! uint num_started = Atomic::add(1u, &_started); // Subtract one to get a zero-indexed worker id. uint worker_id = num_started - 1; return WorkData(_task, worker_id); --- 151,161 ---- WorkData worker_wait_for_task() { // Wait for the coordinator to dispatch a task. _start_semaphore->wait(); ! uint num_started = Atomic::add(&_started, 1u); // Subtract one to get a zero-indexed worker id. uint worker_id = num_started - 1; return WorkData(_task, worker_id);
< prev index next >