Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(609)

Unified Diff: runtime/vm/lockers.cc

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/lockers.h ('k') | runtime/vm/log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « runtime/vm/lockers.h ('k') | runtime/vm/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698