From 00c42ae7bdcf40d15c02b87e088c1eb565a51333 Mon Sep 17 00:00:00 2001 From: Mark Mentovai Date: Fri, 8 May 2015 14:15:11 -0400 Subject: [PATCH] file_io_test: Use NoBarrier_Load() instead of Release_Load(). BUG=chromium:420970 TEST=util_test FileIO.*Exclusive* R=scottmg@chromium.org Review URL: https://codereview.chromium.org/1130403002 --- util/file/file_io_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/file/file_io_test.cc b/util/file/file_io_test.cc index 2c5f96c..f91cde5 100644 --- a/util/file/file_io_test.cc +++ b/util/file/file_io_test.cc @@ -178,7 +178,7 @@ void LockingTest(FileLocking main_lock, FileLocking other_locks) { } base::subtle::Atomic32 result = - base::subtle::Release_Load(&actual_iterations); + base::subtle::NoBarrier_Load(&actual_iterations); EXPECT_EQ(0, result); ASSERT_TRUE(LoggingUnlockFile(initial.get())); @@ -186,7 +186,7 @@ void LockingTest(FileLocking main_lock, FileLocking other_locks) { for (auto& t : threads) t.Join(); - result = base::subtle::Release_Load(&actual_iterations); + result = base::subtle::NoBarrier_Load(&actual_iterations); EXPECT_EQ(expected_iterations, result); }