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

Issue 1130403002: file_io_test: Use NoBarrier_Load() instead of Release_Load() (Closed)

Created:
5 years, 7 months ago by Mark Mentovai
Modified:
5 years, 7 months ago
Reviewers:
JF, scottmg
CC:
crashpad-dev_chromium.org, Alexander Potapenko
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

file_io_test: Use NoBarrier_Load() instead of Release_Load(). BUG=chromium:420970 TEST=util_test FileIO.*Exclusive* R=scottmg@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/00c42ae7bdcf40d15c02b87e088c1eb565a51333

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M util/file/file_io_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Mark Mentovai
5 years, 7 months ago (2015-05-08 12:45:23 UTC) #2
scottmg
lgtm
5 years, 7 months ago (2015-05-08 16:01:43 UTC) #3
Mark Mentovai
Committed patchset #1 (id:1) manually as 00c42ae7bdcf40d15c02b87e088c1eb565a51333 (presubmit successful).
5 years, 7 months ago (2015-05-08 18:15:17 UTC) #4
JF
5 years, 7 months ago (2015-05-11 23:56:26 UTC) #6
Message was sent while issue was closed.
These two changes are likely invalid, and IIUC the first one can cause flaky
tests since there doesn't seem to be synchronization with the threads that just
got started. The second is mostly fine because join will end up getting a
barrier somewhere, but you're effectively using a relaxed operation without
really needing to.

Acquire_Load should be used in both cases instead.

Powered by Google App Engine
This is Rietveld 408576698