| Index: runtime/vm/lockers.cc
|
| diff --git a/runtime/vm/lockers.cc b/runtime/vm/lockers.cc
|
| index 39733dac483604d048046bb2595f3a0505b704e6..6b47e289625a596589591f9a2e0622322a571bbb 100644
|
| --- a/runtime/vm/lockers.cc
|
| +++ b/runtime/vm/lockers.cc
|
| @@ -15,8 +15,8 @@ static void updateThreadState(Thread* thread) {
|
| uint32_t old_state = Thread::SetAtSafepoint(true, 0);
|
| uword addr =
|
| reinterpret_cast<uword>(thread) + Thread::safepoint_state_offset();
|
| - if (AtomicOperations::CompareAndSwapUint32(
|
| - reinterpret_cast<uint32_t*>(addr), old_state, 0) != old_state) {
|
| + if (AtomicOperations::CompareAndSwapUint32(reinterpret_cast<uint32_t*>(addr),
|
| + old_state, 0) != old_state) {
|
| // Fast update failed which means we could potentially be in the middle
|
| // of a safepoint operation and need to block for it.
|
| SafepointHandler* handler = thread->isolate()->safepoint_handler();
|
| @@ -38,8 +38,8 @@ Monitor::WaitResult MonitorLocker::WaitWithSafepointCheck(Thread* thread,
|
| uint32_t old_state = Thread::SetAtSafepoint(true, 0);
|
| uword addr =
|
| reinterpret_cast<uword>(thread) + Thread::safepoint_state_offset();
|
| - if (AtomicOperations::CompareAndSwapUint32(
|
| - reinterpret_cast<uint32_t*>(addr), old_state, 0) != old_state) {
|
| + if (AtomicOperations::CompareAndSwapUint32(reinterpret_cast<uint32_t*>(addr),
|
| + old_state, 0) != old_state) {
|
| // Fast update failed which means we could potentially be in the middle
|
| // of a safepoint operation and need to block for it.
|
| monitor_->Exit();
|
|
|