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

Unified Diff: third_party/WebKit/Source/wtf/Atomics.h

Issue 2651203006: wtf/Atomics.h: Remove Android/ARM kernel helpers. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Atomics.h
diff --git a/third_party/WebKit/Source/wtf/Atomics.h b/third_party/WebKit/Source/wtf/Atomics.h
index c1e8c1216a64dcc3a80c7dc9eed1fa189bd3a82f..b08cdcd205b8e0a635261a3803d4916a5517ff17 100644
--- a/third_party/WebKit/Source/wtf/Atomics.h
+++ b/third_party/WebKit/Source/wtf/Atomics.h
@@ -267,16 +267,6 @@ ALWAYS_INLINE float noBarrierLoad(volatile const float* ptr) {
#else
#define MEMORY_BARRIER() __asm__ __volatile__("" : : : "memory")
#endif
-#elif CPU(ARM) && OS(ANDROID)
-// On ARM __sync_synchronize generates dmb which is very expensive on single
-// core devices which don't actually need it. Avoid the cost by calling into
-// kuser_memory_barrier helper.
-inline void memoryBarrier() {
- // Note: This is a function call, which is also an implicit compiler barrier.
- typedef void (*KernelMemoryBarrierFunc)();
- ((KernelMemoryBarrierFunc)0xffff0fa0)();
-}
-#define MEMORY_BARRIER() memoryBarrier()
#else
// Fallback to the compiler intrinsic on all other platforms.
#define MEMORY_BARRIER() __sync_synchronize()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698