mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-29 00:00:08 +08:00
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:
parent
b2e78eb3c5
commit
00c42ae7bd
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user