aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base_allocator_allocator__shim.cc
blob: ec8cc2627508db49ee76c68a7fa80a738223b5e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- base/allocator/allocator_shim.cc.orig	2017-06-05 19:03:00 UTC
+++ base/allocator/allocator_shim.cc
@@ -83,7 +83,7 @@ inline const allocator::AllocatorDispatch* GetChainHea
   // 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)