summaryrefslogtreecommitdiff
path: root/base/allocator/allocator_shim.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/allocator/allocator_shim.cc')
-rw-r--r--base/allocator/allocator_shim.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/base/allocator/allocator_shim.cc b/base/allocator/allocator_shim.cc
index f511b53088..0caeb73490 100644
--- a/base/allocator/allocator_shim.cc
+++ b/base/allocator/allocator_shim.cc
@@ -131,16 +131,7 @@ void InsertAllocatorDispatch(AllocatorDispatch* dispatch) {
}
}
- // This function does not guarantee to be thread-safe w.r.t. concurrent
- // insertions, but still has to guarantee that all the threads always
- // see a consistent chain, hence the MemoryBarrier() below.
- // InsertAllocatorDispatch() is NOT a fastpath, as opposite to malloc(), so
- // we don't really want this to be a release-store with a corresponding
- // acquire-load during malloc().
- subtle::MemoryBarrier();
-
- subtle::NoBarrier_Store(&g_chain_head,
- reinterpret_cast<subtle::AtomicWord>(dispatch));
+ CHECK(false); // Too many retries, this shouldn't happen.
}
void RemoveAllocatorDispatchForTesting(AllocatorDispatch* dispatch) {