summaryrefslogtreecommitdiff
path: root/chromium/base/metrics/persistent_memory_allocator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/metrics/persistent_memory_allocator.cc')
-rw-r--r--chromium/base/metrics/persistent_memory_allocator.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chromium/base/metrics/persistent_memory_allocator.cc b/chromium/base/metrics/persistent_memory_allocator.cc
index f11d7aa3b3c..7098bd0896b 100644
--- a/chromium/base/metrics/persistent_memory_allocator.cc
+++ b/chromium/base/metrics/persistent_memory_allocator.cc
@@ -350,11 +350,13 @@ PersistentMemoryAllocator::PersistentMemoryAllocator(Memory memory,
// Ensure that memory segment is of acceptable size.
CHECK(IsMemoryAcceptable(memory.base, size, page_size, readonly));
+#ifndef TOOLKIT_QT
// These atomics operate inter-process and so must be lock-free.
DCHECK(SharedMetadata().freeptr.is_lock_free());
DCHECK(SharedMetadata().flags.is_lock_free());
DCHECK(BlockHeader().next.is_lock_free());
CHECK(corrupt_.is_lock_free());
+#endif
if (shared_meta()->cookie != kGlobalCookie) {
if (readonly) {