| Index: base/metrics/persistent_histogram_allocator.cc
|
| diff --git a/base/metrics/persistent_histogram_allocator.cc b/base/metrics/persistent_histogram_allocator.cc
|
| index 3849cbc36b4590a7c9fea2680a985da71852dfdb..67af4a0224031e8f84e40b0028c28e5452d97320 100644
|
| --- a/base/metrics/persistent_histogram_allocator.cc
|
| +++ b/base/metrics/persistent_histogram_allocator.cc
|
| @@ -823,8 +823,8 @@ void GlobalHistogramAllocator::Set(
|
| // likely has histograms stored within it. If the backing memory is also
|
| // also released, future accesses to those histograms will seg-fault.
|
| CHECK(!subtle::NoBarrier_Load(&g_allocator));
|
| - subtle::NoBarrier_Store(&g_allocator,
|
| - reinterpret_cast<uintptr_t>(allocator.release()));
|
| + subtle::Release_Store(&g_allocator,
|
| + reinterpret_cast<uintptr_t>(allocator.release()));
|
| size_t existing = StatisticsRecorder::GetHistogramCount();
|
|
|
| DVLOG_IF(1, existing)
|
| @@ -834,7 +834,7 @@ void GlobalHistogramAllocator::Set(
|
| // static
|
| GlobalHistogramAllocator* GlobalHistogramAllocator::Get() {
|
| return reinterpret_cast<GlobalHistogramAllocator*>(
|
| - subtle::NoBarrier_Load(&g_allocator));
|
| + subtle::Acquire_Load(&g_allocator));
|
| }
|
|
|
| // static
|
| @@ -864,7 +864,7 @@ GlobalHistogramAllocator::ReleaseForTesting() {
|
| DCHECK_NE(kResultHistogram, data->name);
|
| }
|
|
|
| - subtle::NoBarrier_Store(&g_allocator, 0);
|
| + subtle::Release_Store(&g_allocator, 0);
|
| return WrapUnique(histogram_allocator);
|
| };
|
|
|
|
|