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

Issue 2709763003: Avoid calling isMainThread() in the common cases when checking ScriptForbiddenScope::isScriptForbid… (Closed)

Created:
3 years, 10 months ago by esprehn
Modified:
3 years, 9 months ago
Reviewers:
sof, dglazkov, jbroman
CC:
blink-reviews, chromium-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid calling isMainThread() in the common cases when checking ScriptForbiddenScope::isScriptForbidden(). Usually when s_scriptForbiddenCount is true we're about to crash, so check that first then check which thread it is. This means a background thread will read the potentially racy value of the counter, but it'll always return false when it checks isMainThread() next. Review-Url: https://codereview.chromium.org/2709763003 Cr-Commit-Position: refs/heads/master@{#456284} Committed: https://chromium.googlesource.com/chromium/src/+/3b4b07ced6315a25960ca5a51dd1b7ba88de53db

Patch Set 1 #

Patch Set 2 : english. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M third_party/WebKit/Source/platform/ScriptForbiddenScope.h View 1 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 27 (15 generated)
esprehn
3 years, 10 months ago (2017-02-21 23:19:07 UTC) #5
dglazkov
lgtm
3 years, 10 months ago (2017-02-21 23:40:22 UTC) #6
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/2709763003/20001
3 years, 10 months ago (2017-02-21 23:41:56 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_daisy_chromium_compile_only_ng on ...
3 years, 10 months ago (2017-02-22 00:05:45 UTC) #11
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/2709763003/20001
3 years, 10 months ago (2017-02-22 01:03:58 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-22 01:47:21 UTC) #15
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/2709763003/20001
3 years, 10 months ago (2017-02-22 01:58:38 UTC) #17
commit-bot: I haz the power
Exceeded global retry quota
3 years, 10 months ago (2017-02-22 03:06:53 UTC) #19
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/2709763003/20001
3 years, 9 months ago (2017-03-11 01:46:37 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/3b4b07ced6315a25960ca5a51dd1b7ba88de53db
3 years, 9 months ago (2017-03-11 17:53:16 UTC) #24
sof
Could the read be made atomic to avoid (e.g.) crbug.com/700720 'noise' ?
3 years, 9 months ago (2017-03-12 06:35:09 UTC) #26
esprehn
3 years, 9 months ago (2017-03-17 15:29:32 UTC) #27
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2755143002/ by esprehn@chromium.org.

The reason for reverting is: meh..

Powered by Google App Engine
This is Rietveld 408576698