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

Issue 2329693002: Speculative fix to VS 2015 code-gen bug (Closed)

Created:
4 years, 3 months ago by brucedawson
Modified:
4 years, 3 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Speculative workaround for VS 2015 code-gen bug On PGO builds (but no others) a pair of functions in process_power_collector.cc get compiled such that the callee returns a floating-point value in xmm0 and the caller looks for it in st(0). The details are in the bug, but if floating-point exceptions are enabled (perhaps happening due to third-party injected software changing the FPU state) then this can lead to crashes. Even without the crashes it is clearly wrong. Since the bug only reproes in PGO it is difficult to test a fix but disabling optimizations around the two functions *should* do the trick. BUG=640588 Committed: https://crrev.com/764c7362bc01b0f1765f2f9043ca89b71a8d0c76 Cr-Commit-Position: refs/heads/master@{#417994}

Patch Set 1 #

Patch Set 2 : Add #ifdefs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M chrome/browser/power/process_power_collector.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (14 generated)
brucedawson
Speculative fix for a compiler bug - PTAL? I can't guarantee it fixes things, but ...
4 years, 3 months ago (2016-09-10 00:08:12 UTC) #5
brucedawson
Adding other owners... Does this look like a reasonable speculative fix for this code-gen bug? ...
4 years, 3 months ago (2016-09-12 17:57:59 UTC) #13
Daniel Nishi
On 2016/09/12 17:57:59, brucedawson wrote: > Adding other owners... > > Does this look like ...
4 years, 3 months ago (2016-09-12 18:14:07 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2329693002/20001
4 years, 3 months ago (2016-09-12 18:21:40 UTC) #16
brucedawson
On 2016/09/12 18:14:07, Daniel Nishi wrote: > On 2016/09/12 17:57:59, brucedawson wrote: > > Adding ...
4 years, 3 months ago (2016-09-12 18:23:12 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-12 19:10:45 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 19:13:47 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/764c7362bc01b0f1765f2f9043ca89b71a8d0c76
Cr-Commit-Position: refs/heads/master@{#417994}

Powered by Google App Engine
This is Rietveld 408576698