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

Issue 1327693005: sandbox/linux/bpf_dsl: eliminate implicit dependency on C++ compiler behavior (Closed)

Created:
5 years, 3 months ago by mdempsky
Modified:
5 years, 3 months ago
CC:
chromium-reviews, rickyz+watch_chromium.org, jln+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

sandbox/linux/bpf_dsl: eliminate implicit dependency on C++ compiler behavior For the expression F(G(), H()), C++ does not guarantee whether G() or H() will be evaluated first. Apparently the system compiler on Chrome OS makes a different decision than on Ubuntu, which causes the golden file tests introduced by https://crrev.com/1306723002 (which were generated on Ubuntu) to fail on Chrome OS. Easy fix: rewrite the expression as g = G() h = H() F(g, h) to avoid any compiler behavior dependency. BUG=529480 Committed: https://crrev.com/50d2354a72b13ce2aed09af1879d37110c1454f5 Cr-Commit-Position: refs/heads/master@{#347838}

Patch Set 1 #

Patch Set 2 : Add explanatory comment per offline feedback from jln #

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

Messages

Total messages: 10 (4 generated)
mdempsky
I think this should fix the Chrome OS PFQ.
5 years, 3 months ago (2015-09-08 22:56:35 UTC) #2
Jorge Lucangeli Obes
Makes sense to me. lgtm
5 years, 3 months ago (2015-09-08 23:01:27 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1327693005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1327693005/1
5 years, 3 months ago (2015-09-08 23:05:21 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1327693005/10002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1327693005/10002
5 years, 3 months ago (2015-09-08 23:47:17 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:10002)
5 years, 3 months ago (2015-09-08 23:53:35 UTC) #9
commit-bot: I haz the power
5 years, 3 months ago (2015-09-08 23:54:14 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/50d2354a72b13ce2aed09af1879d37110c1454f5
Cr-Commit-Position: refs/heads/master@{#347838}

Powered by Google App Engine
This is Rietveld 408576698