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

Issue 1132473003: Cache IsNonBrowserProcess values, so we only take a loader-lock the first time. (Closed)

Created:
5 years, 7 months ago by Cait (Slow)
Modified:
5 years, 7 months ago
CC:
chromium-reviews, caitkp+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cache IsNonBrowserProcess values, so we only take a loader-lock the first time. BUG=485656, 477137 Committed: https://crrev.com/78d41b5d4e59dc7d52d7e7d6530fdd0a78b36d33 Cr-Commit-Position: refs/heads/master@{#329246}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Skip command-line check if not needed #

Patch Set 3 : Make g_is_non_browser_process global #

Total comments: 4

Patch Set 4 : Rename variable #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -8 lines) Patch
M chrome_elf/blacklist/test/blacklist_test_main_dll.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome_elf/chrome_elf_main.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome_elf/chrome_elf_util.h View 1 2 3 2 chunks +12 lines, -0 lines 2 comments Download
M chrome_elf/chrome_elf_util.cc View 1 2 3 2 chunks +20 lines, -8 lines 1 comment Download
M chrome_elf/chrome_elf_util_unittest.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
grt (UTC plus 2)
drive-by https://codereview.chromium.org/1132473003/diff/1/chrome_elf/chrome_elf_util.cc File chrome_elf/chrome_elf_util.cc (right): https://codereview.chromium.org/1132473003/diff/1/chrome_elf/chrome_elf_util.cc#newcode205 chrome_elf/chrome_elf_util.cc:205: is_sandboxed_process = if this is true, there's no ...
5 years, 7 months ago (2015-05-08 04:44:34 UTC) #3
Sigurður Ásgeirsson
https://codereview.chromium.org/1132473003/diff/1/chrome_elf/chrome_elf_util.cc File chrome_elf/chrome_elf_util.cc (right): https://codereview.chromium.org/1132473003/diff/1/chrome_elf/chrome_elf_util.cc#newcode200 chrome_elf/chrome_elf_util.cc:200: if (!initialized) { This mode of initialization is not ...
5 years, 7 months ago (2015-05-08 14:36:33 UTC) #4
grt (UTC plus 2)
https://codereview.chromium.org/1132473003/diff/1/chrome_elf/chrome_elf_util.cc File chrome_elf/chrome_elf_util.cc (right): https://codereview.chromium.org/1132473003/diff/1/chrome_elf/chrome_elf_util.cc#newcode200 chrome_elf/chrome_elf_util.cc:200: if (!initialized) { On 2015/05/08 14:36:33, Sigurður Ásgeirsson wrote: ...
5 years, 7 months ago (2015-05-08 14:44:22 UTC) #5
Sigurður Ásgeirsson
https://codereview.chromium.org/1132473003/diff/1/chrome_elf/chrome_elf_util.cc File chrome_elf/chrome_elf_util.cc (right): https://codereview.chromium.org/1132473003/diff/1/chrome_elf/chrome_elf_util.cc#newcode200 chrome_elf/chrome_elf_util.cc:200: if (!initialized) { On 2015/05/08 14:44:22, grt wrote: > ...
5 years, 7 months ago (2015-05-08 16:59:43 UTC) #6
Cait (Slow)
Siggi, grt -- PTAL Chris: Can you take a look at the change to chrome_elf/blacklist/test/? ...
5 years, 7 months ago (2015-05-11 20:17:44 UTC) #8
csharp
One small naming suggestion, but the change to the blacklist test seems fine to me ...
5 years, 7 months ago (2015-05-11 20:31:32 UTC) #9
Sigurður Ásgeirsson
lgtm with but a nit. https://codereview.chromium.org/1132473003/diff/40001/chrome_elf/chrome_elf_util.cc File chrome_elf/chrome_elf_util.cc (right): https://codereview.chromium.org/1132473003/diff/40001/chrome_elf/chrome_elf_util.cc#newcode13 chrome_elf/chrome_elf_util.cc:13: ProcessType g_is_non_browser_process = ProcessType::UNINITIALIZED; ...
5 years, 7 months ago (2015-05-11 20:37:41 UTC) #10
Cait (Slow)
thanks, all! https://codereview.chromium.org/1132473003/diff/40001/chrome_elf/chrome_elf_util.cc File chrome_elf/chrome_elf_util.cc (right): https://codereview.chromium.org/1132473003/diff/40001/chrome_elf/chrome_elf_util.cc#newcode13 chrome_elf/chrome_elf_util.cc:13: ProcessType g_is_non_browser_process = ProcessType::UNINITIALIZED; On 2015/05/11 20:37:41, ...
5 years, 7 months ago (2015-05-11 21:16:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1132473003/60001
5 years, 7 months ago (2015-05-11 21:20:26 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-11 22:00:40 UTC) #15
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/78d41b5d4e59dc7d52d7e7d6530fdd0a78b36d33 Cr-Commit-Position: refs/heads/master@{#329246}
5 years, 7 months ago (2015-05-11 22:02:09 UTC) #16
grt (UTC plus 2)
https://codereview.chromium.org/1132473003/diff/60001/chrome_elf/chrome_elf_util.cc File chrome_elf/chrome_elf_util.cc (right): https://codereview.chromium.org/1132473003/diff/60001/chrome_elf/chrome_elf_util.cc#newcode13 chrome_elf/chrome_elf_util.cc:13: ProcessType g_process_type = ProcessType::UNINITIALIZED; i'm surprised this compiles. you're ...
5 years, 7 months ago (2015-05-12 15:17:37 UTC) #17
Cait (Slow)
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1134253002/ by caitkp@chromium.org. ...
5 years, 7 months ago (2015-05-12 19:55:33 UTC) #18
Zhenyao Mo
5 years, 7 months ago (2015-05-12 22:18:54 UTC) #19
Message was sent while issue was closed.
This CL definitely break the GPU win debug bots (I bisected and is 100% sure).

To reproduce, build chrome in debug, then:

python content/test/gpu/run_gpu_test.py maps --browser=debug --show-stdout

The browser won't launch due to an uncaught exception.

Powered by Google App Engine
This is Rietveld 408576698