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

Issue 868743003: Prevent clang from optimizing away a malloc in a test. (Closed)

Created:
5 years, 11 months ago by Nico
Modified:
5 years, 11 months ago
Reviewers:
Will Harris, scottmg
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 4

Patch Set 2 : spellz #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M base/security_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 15 (3 generated)
Nico
5 years, 11 months ago (2015-01-22 19:44:34 UTC) #2
scottmg
lgtm https://codereview.chromium.org/868743003/diff/1/base/security_unittest.cc File base/security_unittest.cc (right): https://codereview.chromium.org/868743003/diff/1/base/security_unittest.cc#newcode45 base/security_unittest.cc:45: // Without the |volatile|, clang optimizez away the ...
5 years, 11 months ago (2015-01-22 19:46:22 UTC) #4
Will Harris
https://codereview.chromium.org/868743003/diff/1/base/security_unittest.cc File base/security_unittest.cc (right): https://codereview.chromium.org/868743003/diff/1/base/security_unittest.cc#newcode45 base/security_unittest.cc:45: // Without the |volatile|, clang optimizez away the allocation. ...
5 years, 11 months ago (2015-01-22 19:46:45 UTC) #5
scottmg
(It's interesting that `malloc()` isn't considered to have side-effects, I wouldn't have guess that was ...
5 years, 11 months ago (2015-01-22 19:47:28 UTC) #6
Nico
https://codereview.chromium.org/868743003/diff/1/base/security_unittest.cc File base/security_unittest.cc (right): https://codereview.chromium.org/868743003/diff/1/base/security_unittest.cc#newcode45 base/security_unittest.cc:45: // Without the |volatile|, clang optimizez away the allocation. ...
5 years, 11 months ago (2015-01-22 19:48:31 UTC) #7
Nico
On 2015/01/22 19:48:31, Nico wrote: > https://codereview.chromium.org/868743003/diff/1/base/security_unittest.cc > File base/security_unittest.cc (right): > > https://codereview.chromium.org/868743003/diff/1/base/security_unittest.cc#newcode45 > ...
5 years, 11 months ago (2015-01-22 19:49:54 UTC) #8
Will Harris
On 2015/01/22 19:48:31, Nico wrote: > What's wrong with volatile? That's kind of the language-supported ...
5 years, 11 months ago (2015-01-22 19:50:19 UTC) #9
Will Harris
you wait a long time for an lgtm then two come along at the same ...
5 years, 11 months ago (2015-01-22 19:51:00 UTC) #10
Nico
> I can chat to jln@ who added this extra wrapper and make sure it's ...
5 years, 11 months ago (2015-01-22 19:52:25 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/868743003/20001
5 years, 11 months ago (2015-01-22 19:53:37 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/33fd64cf5b5e6cff7c96bd74051a0494d45b879a Cr-Commit-Position: refs/heads/master@{#312673}
5 years, 11 months ago (2015-01-22 20:37:28 UTC) #14
Nico
5 years, 11 months ago (2015-01-22 20:37:40 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
33fd64cf5b5e6cff7c96bd74051a0494d45b879a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698