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

Unified Diff: runtime/vm/atomic_macos.h

Issue 1285923003: Use memcpy for Atomic::LoadRelaxed. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months 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/atomic_linux.h ('k') | runtime/vm/atomic_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/atomic_macos.h
diff --git a/runtime/vm/atomic_macos.h b/runtime/vm/atomic_macos.h
index 46d0bec4b612633260f3b69e18c52096ae0a23be..bc2ed6a17a9eceff5ebc03e76e5f028b9446dc02 100644
--- a/runtime/vm/atomic_macos.h
+++ b/runtime/vm/atomic_macos.h
@@ -34,17 +34,6 @@ inline uword AtomicOperations::CompareAndSwapWord(uword* ptr,
}
#endif // !defined(USING_SIMULATOR)
-
-inline uword AtomicOperations::LoadRelaxed(uword* ptr) {
-#if defined(__ATOMIC_RELAXED)
- return __c11_atomic_load(ptr, __ATOMIC_RELAXED);
-#else
- // TODO(koda): Consider using C++11 <atomic> to avoid the barrier on more
- // compilers/platforms.
- return FetchAndAdd(reinterpret_cast<intptr_t*>(ptr), 0);
-#endif
-}
-
} // namespace dart
#endif // VM_ATOMIC_MACOS_H_
« no previous file with comments | « runtime/vm/atomic_linux.h ('k') | runtime/vm/atomic_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698