Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(596)

Unified Diff: util/file/file_io_test.cc

Issue 1130403002: file_io_test: Use NoBarrier_Load() instead of Release_Load() (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/file/file_io_test.cc
diff --git a/util/file/file_io_test.cc b/util/file/file_io_test.cc
index 2c5f96c41be34e1cf7de0eed30f14b596b9378f5..f91cde5ba3bab8ea9f8b0bce9c9b691bd765e125 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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698