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

Issue 11314014: Don't shutdown render "process" in single process mode (Closed)

Created:
8 years, 1 month ago by joth
Modified:
8 years ago
Reviewers:
Jeffrey Yasskin, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, android-webview-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Don't shutdown render "process" in single process mode This avoids races, and is no more overhead than the other many long-lived browser threads that are kept about BUG=158112 TEST=ran "chrome --single-process" on linux, open & close tabs. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170644

Patch Set 1 #

Patch Set 2 : move check to Release() #

Patch Set 3 : rebase #

Patch Set 4 : block renderer initiated shutdowns too #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -10 lines) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 5 chunks +7 lines, -10 lines 3 comments Download

Messages

Total messages: 15 (0 generated)
joth
8 years, 1 month ago (2012-10-29 10:03:17 UTC) #1
jam
why is cleanup getting called in single process mode if you're not exiting? that seems ...
8 years, 1 month ago (2012-10-29 15:25:52 UTC) #2
joth
AIUI if an embedding app creates a WebContents instance, then destroys it, then some minutes ...
8 years, 1 month ago (2012-10-29 15:47:42 UTC) #3
jam
I see. perhaps Cleanup() shouldn't be called at all, i.e. the check should be in ...
8 years, 1 month ago (2012-10-29 19:23:14 UTC) #4
joth
That means it would need duplicating in RenderProcessHostImpl::OnDumpHandlesDone() (and anywhere else that might call it ...
8 years, 1 month ago (2012-10-29 20:01:33 UTC) #5
jam
On 2012/10/29 20:01:33, joth wrote: > That means it would need duplicating in > RenderProcessHostImpl::OnDumpHandlesDone() ...
8 years, 1 month ago (2012-10-29 23:54:42 UTC) #6
joth
Moved the check to Release() Thanks
8 years, 1 month ago (2012-11-14 03:11:42 UTC) #7
joth
John: Any other comments ? Thanks
8 years ago (2012-11-27 01:38:13 UTC) #8
joth
https://codereview.chromium.org/11314014/diff/27002/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/11314014/diff/27002/content/browser/renderer_host/render_process_host_impl.cc#newcode1487 content/browser/renderer_host/render_process_host_impl.cc:1487: if (pending_views_ || num_active_views > 1 || run_renderer_in_process()) I ...
8 years ago (2012-11-29 23:00:24 UTC) #9
jam
lgtm
8 years ago (2012-11-30 23:54:16 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/11314014/27002
8 years ago (2012-11-30 23:56:45 UTC) #11
commit-bot: I haz the power
Change committed as 170644
8 years ago (2012-12-01 03:18:11 UTC) #12
Jeffrey Yasskin
https://chromiumcodereview.appspot.com/11314014/diff/27002/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://chromiumcodereview.appspot.com/11314014/diff/27002/content/browser/renderer_host/render_process_host_impl.cc#newcode1130 content/browser/renderer_host/render_process_host_impl.cc:1130: // Keep the one renderer thread around forever in ...
8 years ago (2012-12-14 22:10:51 UTC) #13
joth
ah sorry for the inconvenience in having to track this down!. https://chromiumcodereview.appspot.com/11314014/diff/27002/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): ...
8 years ago (2012-12-14 22:34:12 UTC) #14
Jeffrey Yasskin
8 years ago (2012-12-14 23:40:36 UTC) #15
On Fri, Dec 14, 2012 at 2:34 PM,  <joth@chromium.org> wrote:
> ah sorry for the inconvenience in having to track this down!.

No worries; --single-process doesn't have a continuous builder, so
this sort of thing is bound to happen from time to time. It wasn't
that hard to find, either.

Powered by Google App Engine
This is Rietveld 408576698