Home
last modified time | relevance | path

Searched refs:cur_val (Results 1 – 2 of 2) sorted by relevance

/art/runtime/
Dthread_list.cc600 int32_t cur_val = pending_threads.LoadRelaxed(); in SuspendAllInternal() local
601 if (LIKELY(cur_val > 0)) { in SuspendAllInternal()
603 if (futex(pending_threads.Address(), FUTEX_WAIT, cur_val, &wait_timeout, nullptr, 0) != 0) { in SuspendAllInternal()
613 cur_val = pending_threads.LoadRelaxed(); in SuspendAllInternal()
614 CHECK_EQ(cur_val, 0); in SuspendAllInternal()
621 CHECK_EQ(cur_val, 0); in SuspendAllInternal()
Dthread.cc1084 int32_t cur_val = pending_threads->LoadRelaxed(); in PassActiveSuspendBarriers() local
1085 CHECK_GT(cur_val, 0) << "Unexpected value for PassActiveSuspendBarriers(): " << cur_val; in PassActiveSuspendBarriers()
1087 done = pending_threads->CompareExchangeWeakRelaxed(cur_val, cur_val - 1); in PassActiveSuspendBarriers()
1089 if (done && (cur_val - 1) == 0) { // Weak CAS may fail spuriously. in PassActiveSuspendBarriers()