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

Issue 2159123002: Shutdown renderer main message loop before blink::shutdown() (Closed)

Created:
4 years, 5 months ago by tzik
Modified:
4 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Shutdown renderer main message loop before blink::shutdown() blink::Persistent requires all instances to be destroyed before ThreadState shutdown, which happens in blink::shutdown(). However, some blink::Persistent are held by MessageLoop as bound arguments. That causes renderer crash on the destructor of blink::Persistent. This CL moves MessageLoop shutdown before blink::Platform::shutdown, so that message loop doesn't hold any task on ThreadState shutdown. BUG=627004

Patch Set 1 #

Total comments: 2

Patch Set 2 : +ChildThreadImpl::main_task_runner() and replace message_loop() access #

Patch Set 3 : Split out Platform::shutdown() from blink::shutdown() #

Patch Set 4 : fix #

Patch Set 5 : split out blink::Platform::initialize from blink::initialize #

Total comments: 8

Patch Set 6 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -28 lines) Patch
M content/child/child_process.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/child/child_thread_impl.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 2 3 4 5 6 chunks +7 lines, -5 lines 0 comments Download
M content/ppapi_plugin/ppapi_thread.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 chunks +13 lines, -9 lines 0 comments Download
M content/test/test_blink_web_unit_test_support.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M media/blink/run_all_unittests.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebKit.cpp View 1 2 3 4 5 2 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/public/web/WebKit.h View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 60 (31 generated)
tzik
PTAL
4 years, 5 months ago (2016-07-19 12:32:22 UTC) #8
esprehn
https://codereview.chromium.org/2159123002/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (left): https://codereview.chromium.org/2159123002/diff/1/content/renderer/render_thread_impl.cc#oldcode996 content/renderer/render_thread_impl.cc:996: // to the browser process. You're doing the opposite ...
4 years, 5 months ago (2016-07-19 16:42:54 UTC) #9
tzik
https://codereview.chromium.org/2159123002/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (left): https://codereview.chromium.org/2159123002/diff/1/content/renderer/render_thread_impl.cc#oldcode996 content/renderer/render_thread_impl.cc:996: // to the browser process. On 2016/07/19 16:42:54, esprehn ...
4 years, 5 months ago (2016-07-19 17:26:52 UTC) #11
haraken
On 2016/07/19 17:26:52, tzik wrote: > https://codereview.chromium.org/2159123002/diff/1/content/renderer/render_thread_impl.cc > File content/renderer/render_thread_impl.cc (left): > > https://codereview.chromium.org/2159123002/diff/1/content/renderer/render_thread_impl.cc#oldcode996 > ...
4 years, 5 months ago (2016-07-20 08:34:34 UTC) #15
haraken
On 2016/07/20 08:34:34, haraken wrote: > On 2016/07/19 17:26:52, tzik wrote: > > > https://codereview.chromium.org/2159123002/diff/1/content/renderer/render_thread_impl.cc ...
4 years, 5 months ago (2016-07-20 08:35:36 UTC) #16
tzik
On 2016/07/20 08:34:34, haraken wrote: > On 2016/07/19 17:26:52, tzik wrote: > > > https://codereview.chromium.org/2159123002/diff/1/content/renderer/render_thread_impl.cc ...
4 years, 5 months ago (2016-07-20 09:25:25 UTC) #18
tzik
On 2016/07/20 08:35:36, haraken wrote: > On 2016/07/20 08:34:34, haraken wrote: > > On 2016/07/19 ...
4 years, 5 months ago (2016-07-20 09:26:37 UTC) #20
haraken
On 2016/07/20 09:25:25, tzik wrote: > On 2016/07/20 08:34:34, haraken wrote: > > On 2016/07/19 ...
4 years, 5 months ago (2016-07-20 10:19:23 UTC) #25
tzik
On 2016/07/20 10:19:23, haraken wrote: > On 2016/07/20 09:25:25, tzik wrote: > > On 2016/07/20 ...
4 years, 5 months ago (2016-07-20 10:50:22 UTC) #26
haraken
On 2016/07/20 10:50:22, tzik wrote: > On 2016/07/20 10:19:23, haraken wrote: > > On 2016/07/20 ...
4 years, 5 months ago (2016-07-20 10:56:47 UTC) #27
tzik
On 2016/07/20 10:56:47, haraken wrote: > On 2016/07/20 10:50:22, tzik wrote: > > On 2016/07/20 ...
4 years, 5 months ago (2016-07-20 12:04:33 UTC) #30
haraken
On 2016/07/20 12:04:33, tzik wrote: > On 2016/07/20 10:56:47, haraken wrote: > > On 2016/07/20 ...
4 years, 5 months ago (2016-07-20 13:44:41 UTC) #31
tzik
On 2016/07/20 13:44:41, haraken wrote: > On 2016/07/20 12:04:33, tzik wrote: > > On 2016/07/20 ...
4 years, 5 months ago (2016-07-20 14:27:04 UTC) #32
haraken
On 2016/07/20 14:27:04, tzik wrote: > On 2016/07/20 13:44:41, haraken wrote: > > On 2016/07/20 ...
4 years, 5 months ago (2016-07-20 16:33:36 UTC) #33
tzik
On 2016/07/20 16:33:36, haraken wrote: > On 2016/07/20 14:27:04, tzik wrote: > > On 2016/07/20 ...
4 years, 5 months ago (2016-07-20 18:01:55 UTC) #34
haraken
On 2016/07/20 18:01:55, tzik wrote: > On 2016/07/20 16:33:36, haraken wrote: > > On 2016/07/20 ...
4 years, 5 months ago (2016-07-20 18:17:50 UTC) #35
haraken
Sorry, I forgot to review this CL... As discussed offline, let's land PS4 as a ...
4 years, 4 months ago (2016-07-28 12:12:06 UTC) #36
esprehn
What's the status here? :)
4 years, 4 months ago (2016-08-06 01:20:00 UTC) #37
tzik
On 2016/08/06 01:20:00, esprehn wrote: > What's the status here? :) Let me resume this. ...
4 years, 4 months ago (2016-08-08 09:04:52 UTC) #40
haraken
LGTM https://codereview.chromium.org/2159123002/diff/80001/third_party/WebKit/Source/web/WebKit.cpp File third_party/WebKit/Source/web/WebKit.cpp (right): https://codereview.chromium.org/2159123002/diff/80001/third_party/WebKit/Source/web/WebKit.cpp#newcode85 third_party/WebKit/Source/web/WebKit.cpp:85: // Platform::initialize(platform); Remove this. https://codereview.chromium.org/2159123002/diff/80001/third_party/WebKit/public/web/WebKit.h File third_party/WebKit/public/web/WebKit.h (right): ...
4 years, 4 months ago (2016-08-08 10:50:19 UTC) #43
tzik
PTAL to: kinuko: //content, if you have time. dalecurtis: //media tkent: public/web https://codereview.chromium.org/2159123002/diff/80001/third_party/WebKit/Source/web/WebKit.cpp File third_party/WebKit/Source/web/WebKit.cpp ...
4 years, 4 months ago (2016-08-09 08:58:02 UTC) #50
kinuko
https://codereview.chromium.org/2159123002/diff/80001/content/child/child_thread_impl.h File content/child/child_thread_impl.h (right): https://codereview.chromium.org/2159123002/diff/80001/content/child/child_thread_impl.h#newcode185 content/child/child_thread_impl.h:185: base::SingleThreadTaskRunner* main_task_runner() const { main_thread_->main_task_runner() looks slightly cryptic, what ...
4 years, 4 months ago (2016-08-09 14:12:18 UTC) #53
haraken
https://codereview.chromium.org/2159123002/diff/80001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2159123002/diff/80001/content/renderer/render_thread_impl.cc#newcode994 content/renderer/render_thread_impl.cc:994: base::RunLoop().RunUntilIdle(); On 2016/08/09 14:12:18, kinuko wrote: > Hmm, I ...
4 years, 4 months ago (2016-08-09 15:46:58 UTC) #54
DaleCurtis
lgtm
4 years, 4 months ago (2016-08-09 18:58:20 UTC) #55
kinuko
https://codereview.chromium.org/2159123002/diff/80001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2159123002/diff/80001/content/renderer/render_thread_impl.cc#newcode994 content/renderer/render_thread_impl.cc:994: base::RunLoop().RunUntilIdle(); On 2016/08/09 15:46:58, haraken wrote: > On 2016/08/09 ...
4 years, 4 months ago (2016-08-11 06:10:56 UTC) #56
haraken
On 2016/08/11 06:10:56, kinuko wrote: > https://codereview.chromium.org/2159123002/diff/80001/content/renderer/render_thread_impl.cc > File content/renderer/render_thread_impl.cc (right): > > https://codereview.chromium.org/2159123002/diff/80001/content/renderer/render_thread_impl.cc#newcode994 > ...
4 years, 4 months ago (2016-08-11 12:23:13 UTC) #57
kinuko
On 2016/08/11 12:23:13, haraken wrote: > On 2016/08/11 06:10:56, kinuko wrote: > > > https://codereview.chromium.org/2159123002/diff/80001/content/renderer/render_thread_impl.cc ...
4 years, 4 months ago (2016-08-16 21:36:00 UTC) #58
esprehn
What's the status here? Can we close this now that we're removing graceful shutdown? :)
4 years, 3 months ago (2016-08-30 23:35:05 UTC) #59
haraken
4 years, 3 months ago (2016-08-30 23:38:02 UTC) #60
On 2016/08/30 23:35:05, esprehn wrote:
> What's the status here? Can we close this now that we're removing graceful
> shutdown? :)

Yes, this should no longer be needed.

Powered by Google App Engine
This is Rietveld 408576698