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

Unified Diff: runtime/vm/atomic_win.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_macos.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/atomic_win.h
diff --git a/runtime/vm/atomic_win.h b/runtime/vm/atomic_win.h
index 021f3adc3f9aead55edb0f563d135be09093eafd..433d32e86d52db439b6ea964e0e1bd2e300ba171 100644
--- a/runtime/vm/atomic_win.h
+++ b/runtime/vm/atomic_win.h
@@ -61,13 +61,6 @@ inline uword AtomicOperations::CompareAndSwapWord(uword* ptr,
}
#endif // !defined(USING_SIMULATOR)
-
-inline uword AtomicOperations::LoadRelaxed(uword* ptr) {
- // TODO(koda): Consider using C++11 <atomic> to avoid the barrier on more
- // compilers/platforms.
- return FetchAndAdd(reinterpret_cast<intptr_t*>(ptr), 0);
-}
-
} // namespace dart
#endif // VM_ATOMIC_WIN_H_
« no previous file with comments | « runtime/vm/atomic_macos.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698