blob: 511d90c292b457d745d375deec13ffc76586a4d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- base/allocator/allocator_shim.cc.orig 2017-04-19 19:06:28 UTC
+++ base/allocator/allocator_shim.cc
@@ -81,7 +81,7 @@ inline const allocator::AllocatorDispatc
// Unfortunately due to that bug NoBarrier_Load() is mistakenly fully
// barriered on Linux+Clang, and that causes visible perf regressons.
return reinterpret_cast<const allocator::AllocatorDispatch*>(
-#if defined(OS_LINUX) && defined(__clang__)
+#if (defined(OS_BSD) || defined(OS_LINUX)) && defined(__clang__)
*static_cast<const volatile subtle::AtomicWord*>(&g_chain_head)
#else
subtle::NoBarrier_Load(&g_chain_head)
|