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

Issue 1761853002: Shut down all threads before the main thread shuts down (Closed)

Created:
4 years, 9 months ago by haraken
Modified:
4 years, 9 months ago
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Shut down all threads before the main thread shuts down Currently the contents in initialize/initializeWithoutV8 and shutdown/shutdownWithoutV8 are not balanced. For example, HTMLParserThread is initialized in initializeWithoutV8 but shut down in shutdown. Consequently, HTMLParserThread leaks in tests that call initializeWithoutV8 and shutdownWithoutV8. This CL makes the contents balanced and thus make sure that the main thread joins all threads before shutting down. BUG= Committed: https://crrev.com/5940f25b9d91258d698a5ce9f48e8a253c7b1652 Cr-Commit-Position: refs/heads/master@{#379543}

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 9

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -36 lines) Patch
M content/browser/renderer_host/sandbox_ipc_linux.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/Init.h View 1 chunk +7 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/Init.cpp View 2 chunks +4 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/InitModules.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/InitModules.cpp View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/ThreadState.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/ThreadState.cpp View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebKit.cpp View 1 2 3 4 4 chunks +23 lines, -15 lines 0 comments Download

Messages

Total messages: 38 (5 generated)
haraken
PTAL This CL is necessary to land https://codereview.chromium.org/1754313002. https://codereview.chromium.org/1761853002/diff/20001/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp File third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp (right): https://codereview.chromium.org/1761853002/diff/20001/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp#newcode61 third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp:61: ASSERT(isMainThread()); ...
4 years, 9 months ago (2016-03-03 12:08:46 UTC) #2
haraken
4 years, 9 months ago (2016-03-03 12:09:05 UTC) #4
haraken
Looks like bots are not happy. I'll take a look.
4 years, 9 months ago (2016-03-03 16:51:26 UTC) #5
yhirano
https://codereview.chromium.org/1761853002/diff/20001/third_party/WebKit/Source/web/WebKit.cpp File third_party/WebKit/Source/web/WebKit.cpp (right): https://codereview.chromium.org/1761853002/diff/20001/third_party/WebKit/Source/web/WebKit.cpp#newcode218 third_party/WebKit/Source/web/WebKit.cpp:218: void shutdownWithoutV8() I would like to guarantee that all ...
4 years, 9 months ago (2016-03-03 18:03:11 UTC) #6
haraken
https://codereview.chromium.org/1761853002/diff/20001/third_party/WebKit/Source/web/WebKit.cpp File third_party/WebKit/Source/web/WebKit.cpp (right): https://codereview.chromium.org/1761853002/diff/20001/third_party/WebKit/Source/web/WebKit.cpp#newcode218 third_party/WebKit/Source/web/WebKit.cpp:218: void shutdownWithoutV8() On 2016/03/03 18:03:11, yhirano wrote: > I ...
4 years, 9 months ago (2016-03-03 23:47:38 UTC) #7
yhirano
https://codereview.chromium.org/1761853002/diff/20001/third_party/WebKit/Source/web/WebKit.cpp File third_party/WebKit/Source/web/WebKit.cpp (right): https://codereview.chromium.org/1761853002/diff/20001/third_party/WebKit/Source/web/WebKit.cpp#newcode218 third_party/WebKit/Source/web/WebKit.cpp:218: void shutdownWithoutV8() On 2016/03/03 23:47:37, haraken wrote: > On ...
4 years, 9 months ago (2016-03-03 23:58:18 UTC) #8
haraken
On 2016/03/03 23:58:18, yhirano wrote: > https://codereview.chromium.org/1761853002/diff/20001/third_party/WebKit/Source/web/WebKit.cpp > File third_party/WebKit/Source/web/WebKit.cpp (right): > > https://codereview.chromium.org/1761853002/diff/20001/third_party/WebKit/Source/web/WebKit.cpp#newcode218 > ...
4 years, 9 months ago (2016-03-04 00:50:30 UTC) #9
haraken
Now all tests pass. PTAL. yhirano@: Would you elaborate on why you want to move ...
4 years, 9 months ago (2016-03-04 07:14:06 UTC) #10
yhirano
On 2016/03/04 07:14:06, haraken wrote: > Now all tests pass. PTAL. > > yhirano@: Would ...
4 years, 9 months ago (2016-03-04 07:50:31 UTC) #11
kinuko
On 2016/03/04 07:50:31, yhirano wrote: > On 2016/03/04 07:14:06, haraken wrote: > > Now all ...
4 years, 9 months ago (2016-03-04 09:03:30 UTC) #12
haraken
On 2016/03/04 09:03:30, kinuko wrote: > On 2016/03/04 07:50:31, yhirano wrote: > > On 2016/03/04 ...
4 years, 9 months ago (2016-03-04 09:59:02 UTC) #13
haraken
On 2016/03/04 07:50:31, yhirano wrote: > On 2016/03/04 07:14:06, haraken wrote: > > Now all ...
4 years, 9 months ago (2016-03-04 11:04:00 UTC) #14
yhirano
On 2016/03/04 11:04:00, haraken wrote: > On 2016/03/04 07:50:31, yhirano wrote: > > On 2016/03/04 ...
4 years, 9 months ago (2016-03-05 00:59:14 UTC) #15
yhirano
FYI: https://codereview.chromium.org/1768783002/
4 years, 9 months ago (2016-03-05 02:37:27 UTC) #16
haraken
On 2016/03/05 00:59:14, yhirano wrote: > On 2016/03/04 11:04:00, haraken wrote: > > On 2016/03/04 ...
4 years, 9 months ago (2016-03-07 01:47:32 UTC) #17
yhirano
Sorry, I still don't understand. Looking at [1], [2], [3] and [4], it seems A: ...
4 years, 9 months ago (2016-03-07 04:42:13 UTC) #18
kinuko
On 2016/03/04 09:59:02, haraken wrote: > On 2016/03/04 09:03:30, kinuko wrote: > > On 2016/03/04 ...
4 years, 9 months ago (2016-03-07 04:47:53 UTC) #19
kinuko
On 2016/03/07 04:47:53, kinuko wrote: > On 2016/03/04 09:59:02, haraken wrote: > > On 2016/03/04 ...
4 years, 9 months ago (2016-03-07 04:52:48 UTC) #20
kinuko
On 2016/03/07 04:52:48, kinuko wrote: > On 2016/03/07 04:47:53, kinuko wrote: > > On 2016/03/04 ...
4 years, 9 months ago (2016-03-07 04:58:39 UTC) #21
haraken
On 2016/03/07 04:42:13, yhirano wrote: > Sorry, I still don't understand. > > Looking at ...
4 years, 9 months ago (2016-03-07 05:30:13 UTC) #22
kinuko
If all tests go well this looks reasonable to me. https://codereview.chromium.org/1761853002/diff/80001/content/browser/renderer_host/sandbox_ipc_linux.cc File content/browser/renderer_host/sandbox_ipc_linux.cc (right): https://codereview.chromium.org/1761853002/diff/80001/content/browser/renderer_host/sandbox_ipc_linux.cc#newcode124 ...
4 years, 9 months ago (2016-03-07 06:36:56 UTC) #23
yhirano
Great! LGTM.
4 years, 9 months ago (2016-03-07 07:24:35 UTC) #24
haraken
kinuko-san: Does it look good to you?
4 years, 9 months ago (2016-03-07 07:26:57 UTC) #25
sof
https://codereview.chromium.org/1761853002/diff/80001/third_party/WebKit/Source/web/WebKit.cpp File third_party/WebKit/Source/web/WebKit.cpp (right): https://codereview.chromium.org/1761853002/diff/80001/third_party/WebKit/Source/web/WebKit.cpp#newcode208 third_party/WebKit/Source/web/WebKit.cpp:208: ThreadState::current()->unregisterTraceDOMWrappers(); Why is this needed now & here? (sorry, ...
4 years, 9 months ago (2016-03-07 07:29:28 UTC) #26
haraken
https://codereview.chromium.org/1761853002/diff/80001/third_party/WebKit/Source/web/WebKit.cpp File third_party/WebKit/Source/web/WebKit.cpp (right): https://codereview.chromium.org/1761853002/diff/80001/third_party/WebKit/Source/web/WebKit.cpp#newcode208 third_party/WebKit/Source/web/WebKit.cpp:208: ThreadState::current()->unregisterTraceDOMWrappers(); On 2016/03/07 07:29:28, sof wrote: > Why is ...
4 years, 9 months ago (2016-03-07 07:33:57 UTC) #27
sof
https://codereview.chromium.org/1761853002/diff/80001/content/browser/renderer_host/sandbox_ipc_linux.cc File content/browser/renderer_host/sandbox_ipc_linux.cc (right): https://codereview.chromium.org/1761853002/diff/80001/content/browser/renderer_host/sandbox_ipc_linux.cc#newcode124 content/browser/renderer_host/sandbox_ipc_linux.cc:124: blink::shutdownWithoutV8(); naive question: would things break horribly if this ...
4 years, 9 months ago (2016-03-07 07:54:03 UTC) #28
haraken
https://codereview.chromium.org/1761853002/diff/80001/content/browser/renderer_host/sandbox_ipc_linux.cc File content/browser/renderer_host/sandbox_ipc_linux.cc (right): https://codereview.chromium.org/1761853002/diff/80001/content/browser/renderer_host/sandbox_ipc_linux.cc#newcode124 content/browser/renderer_host/sandbox_ipc_linux.cc:124: blink::shutdownWithoutV8(); On 2016/03/07 07:54:03, sof wrote: > naive question: ...
4 years, 9 months ago (2016-03-07 08:02:34 UTC) #29
sof
https://codereview.chromium.org/1761853002/diff/80001/content/browser/renderer_host/sandbox_ipc_linux.cc File content/browser/renderer_host/sandbox_ipc_linux.cc (right): https://codereview.chromium.org/1761853002/diff/80001/content/browser/renderer_host/sandbox_ipc_linux.cc#newcode124 content/browser/renderer_host/sandbox_ipc_linux.cc:124: blink::shutdownWithoutV8(); On 2016/03/07 08:02:34, haraken wrote: > On 2016/03/07 ...
4 years, 9 months ago (2016-03-07 08:20:38 UTC) #30
haraken
https://codereview.chromium.org/1761853002/diff/80001/content/browser/renderer_host/sandbox_ipc_linux.cc File content/browser/renderer_host/sandbox_ipc_linux.cc (right): https://codereview.chromium.org/1761853002/diff/80001/content/browser/renderer_host/sandbox_ipc_linux.cc#newcode124 content/browser/renderer_host/sandbox_ipc_linux.cc:124: blink::shutdownWithoutV8(); On 2016/03/07 08:20:38, sof wrote: > On 2016/03/07 ...
4 years, 9 months ago (2016-03-07 08:24:04 UTC) #31
kinuko
lgtm.
4 years, 9 months ago (2016-03-07 11:31:37 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1761853002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1761853002/100001
4 years, 9 months ago (2016-03-07 11:32:11 UTC) #35
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 9 months ago (2016-03-07 12:54:46 UTC) #36
commit-bot: I haz the power
4 years, 9 months ago (2016-03-07 12:57:46 UTC) #38
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5940f25b9d91258d698a5ce9f48e8a253c7b1652
Cr-Commit-Position: refs/heads/master@{#379543}

Powered by Google App Engine
This is Rietveld 408576698