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
This commit is contained in:
Mark Mentovai 2015-05-08 14:15:11 -04:00
parent b2e78eb3c5
commit 00c42ae7bd

View File

@ -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);
}