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

Issue 146693011: Terminate process in onDestroy. (Closed)

Created:
6 years, 10 months ago by Fredrik Öhrn
Modified:
5 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, ppi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Terminate process in onDestroy. Normally this code is never reached, the child process terminates when the IPC channel is closed. If onDestroy is called something abnormal happened and there is not much point in doing a graceful shutdown. BUG=338709

Patch Set 1 #

Patch Set 2 : retry upload #

Total comments: 2

Patch Set 3 : Use System.exit #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -51 lines) Patch
M content/app/android/child_process_service.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/child/child_thread.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/child/child_thread.cc View 2 chunks +0 lines, -22 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/ChildProcessService.java View 1 2 2 chunks +7 lines, -19 lines 5 comments Download

Messages

Total messages: 36 (3 generated)
Fredrik Öhrn
The current onDestroy code does a lot of work to initiate a graceful shutdown. I ...
6 years, 10 months ago (2014-01-28 16:57:40 UTC) #1
Avi (use Gerrit)
When you have multiple reviewers, please explicitly specify who should be reviewing what files. Otherwise, ...
6 years, 10 months ago (2014-01-28 17:04:54 UTC) #2
Fredrik Öhrn
On 2014/01/28 17:04:54, Avi wrote: > When you have multiple reviewers, please explicitly specify who ...
6 years, 10 months ago (2014-01-28 17:16:03 UTC) #3
Yaron
On 2014/01/28 17:16:03, Fredrik Öhrn wrote: > On 2014/01/28 17:04:54, Avi wrote: > > When ...
6 years, 10 months ago (2014-01-28 22:00:37 UTC) #4
Fredrik Öhrn
On 2014/01/28 22:00:37, Yaron wrote: > > Can you re-upload your patch. I'm getting errors ...
6 years, 10 months ago (2014-01-29 09:32:07 UTC) #5
Yaron
+klobag who should also look https://codereview.chromium.org/146693011/diff/20001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java File content/public/android/java/src/org/chromium/content/app/ChildProcessService.java (left): https://codereview.chromium.org/146693011/diff/20001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java#oldcode194 content/public/android/java/src/org/chromium/content/app/ChildProcessService.java:194: // Avoid a potential ...
6 years, 10 months ago (2014-01-29 18:48:25 UTC) #6
klobag.chromium
https://codereview.chromium.org/146693011/diff/20001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java File content/public/android/java/src/org/chromium/content/app/ChildProcessService.java (right): https://codereview.chromium.org/146693011/diff/20001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java#newcode193 content/public/android/java/src/org/chromium/content/app/ChildProcessService.java:193: nativeExitChildProcess(); Besides Yaron's comment, this essentially reverted https://chromiumcodereview.appspot.com/11428056/. So ...
6 years, 10 months ago (2014-01-29 23:50:03 UTC) #7
Yaron
On 2014/01/29 23:50:03, klobag.chromium wrote: > https://codereview.chromium.org/146693011/diff/20001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java > File > content/public/android/java/src/org/chromium/content/app/ChildProcessService.java > (right): > > ...
6 years, 10 months ago (2014-01-30 00:12:50 UTC) #8
Fredrik Öhrn
On 2014/01/30 00:12:50, Yaron wrote: > On 2014/01/29 23:50:03, klobag.chromium wrote: > > > https://codereview.chromium.org/146693011/diff/20001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java ...
6 years, 10 months ago (2014-01-30 09:38:56 UTC) #9
michaelbai
I remembered we discussed do we really need to shutdown gracefully, if we decide we ...
6 years, 10 months ago (2014-01-30 21:26:50 UTC) #10
Fredrik Öhrn
On 2014/01/30 21:26:50, michaelbai wrote: > I remembered we discussed do we really need to ...
6 years, 10 months ago (2014-01-30 22:05:18 UTC) #11
michaelbai
Unless we decide that Android chrome does NOT need to shutdown gracefully, I think fixing ...
6 years, 10 months ago (2014-01-30 22:50:00 UTC) #12
bulach
https://codereview.chromium.org/146693011/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java File content/public/android/java/src/org/chromium/content/app/ChildProcessService.java (right): https://codereview.chromium.org/146693011/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java#newcode193 content/public/android/java/src/org/chromium/content/app/ChildProcessService.java:193: System.exit(0); I can try to dig further from the ...
6 years, 10 months ago (2014-02-03 21:57:36 UTC) #13
Fredrik Öhrn
On 2014/02/03 21:57:36, bulach wrote: > https://codereview.chromium.org/146693011/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java > File > content/public/android/java/src/org/chromium/content/app/ChildProcessService.java > (right): > > ...
6 years, 10 months ago (2014-02-04 09:14:31 UTC) #14
Fredrik Öhrn
On 2014/02/04 09:14:31, Fredrik Öhrn wrote: > On 2014/02/03 21:57:36, bulach wrote: > > > ...
6 years, 10 months ago (2014-02-10 13:38:06 UTC) #15
Yaron
On 2014/02/10 13:38:06, Fredrik Öhrn wrote: > On 2014/02/04 09:14:31, Fredrik Öhrn wrote: > > ...
6 years, 10 months ago (2014-02-10 18:43:33 UTC) #16
bulach
ppi@, I think you dealt with the renderer termination in the past, right? would you ...
6 years, 10 months ago (2014-02-11 14:57:26 UTC) #17
ppi
TL;DR: I like it but I don't feel competent to decide. While I second Fredrik's ...
6 years, 10 months ago (2014-02-17 16:06:37 UTC) #18
Fredrik Öhrn
Ping?
6 years, 9 months ago (2014-03-14 14:27:08 UTC) #19
ppi
Let's take this out of the limbo - Fredrik, ptal at a question below. https://codereview.chromium.org/146693011/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java ...
6 years, 1 month ago (2014-11-07 14:16:36 UTC) #22
ppi
In the context of this being the fix for the immediate process reuse problem, I'd ...
6 years, 1 month ago (2014-11-07 14:28:29 UTC) #23
Fredrik Öhrn
https://codereview.chromium.org/146693011/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java File content/public/android/java/src/org/chromium/content/app/ChildProcessService.java (right): https://codereview.chromium.org/146693011/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java#newcode193 content/public/android/java/src/org/chromium/content/app/ChildProcessService.java:193: System.exit(0); On 2014/11/07 14:16:35, ppi wrote: > On 2014/02/03 ...
6 years, 1 month ago (2014-11-07 15:00:43 UTC) #24
ppi
https://codereview.chromium.org/146693011/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java File content/public/android/java/src/org/chromium/content/app/ChildProcessService.java (right): https://codereview.chromium.org/146693011/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java#newcode193 content/public/android/java/src/org/chromium/content/app/ChildProcessService.java:193: System.exit(0); On 2014/11/07 15:00:43, Fredrik Öhrn wrote: > On ...
6 years, 1 month ago (2014-11-14 10:29:58 UTC) #25
ppi
https://codereview.chromium.org/146693011/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java File content/public/android/java/src/org/chromium/content/app/ChildProcessService.java (right): https://codereview.chromium.org/146693011/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java#newcode193 content/public/android/java/src/org/chromium/content/app/ChildProcessService.java:193: System.exit(0); On 2014/11/14 10:29:58, ppi wrote: > On 2014/11/07 ...
6 years ago (2014-12-12 19:23:06 UTC) #27
Fredrik Öhrn
On 2014/12/12 19:23:06, ppi wrote: > > We had a discussion with the framework folks. ...
6 years ago (2014-12-15 16:55:58 UTC) #28
klobag.chromium
On 2014/12/15 16:55:58, Fredrik Öhrn wrote: > On 2014/12/12 19:23:06, ppi wrote: > > > ...
6 years ago (2014-12-16 00:31:55 UTC) #29
Fredrik Öhrn
On 2014/12/16 00:31:55, klobag.chromium wrote: > On 2014/12/15 16:55:58, Fredrik Öhrn wrote: > > > ...
6 years ago (2014-12-16 10:02:05 UTC) #30
Yaron
On 2014/12/16 10:02:05, Fredrik Öhrn wrote: > On 2014/12/16 00:31:55, klobag.chromium wrote: > > On ...
5 years, 10 months ago (2015-02-20 17:09:44 UTC) #31
Fredrik Öhrn
On 2015/02/20 17:09:44, Yaron wrote: > > I found something that might be related and ...
5 years, 10 months ago (2015-02-23 09:23:20 UTC) #32
Yaron
On 2015/02/23 09:23:20, Fredrik Öhrn wrote: > On 2015/02/20 17:09:44, Yaron wrote: > > > ...
5 years, 10 months ago (2015-02-23 14:46:18 UTC) #33
Fredrik Öhrn
On 2015/02/23 14:46:18, Yaron wrote: > > If you have a reproducible case, I would ...
5 years, 10 months ago (2015-02-24 10:07:49 UTC) #34
Fredrik Öhrn
On 2015/02/23 14:46:18, Yaron wrote: > On 2015/02/23 09:23:20, Fredrik Öhrn wrote: > > > ...
5 years, 4 months ago (2015-08-07 10:01:05 UTC) #35
Yaron
5 years, 4 months ago (2015-08-07 13:49:43 UTC) #36
Message was sent while issue was closed.
On 2015/08/07 10:01:05, Fredrik Öhrn wrote:
> On 2015/02/23 14:46:18, Yaron wrote:
> > On 2015/02/23 09:23:20, Fredrik Öhrn wrote:
> > > 
> > > Thanks a lot! We didn't know about FastShutdownForPageCount. I'll look
into
> > > using it in Opera.
> > 
> > If you have a reproducible case, I would be interested to hear if this
> resolves
> > it for you. I can certainly upstream this snippet to chromium so you'll get
it
> > for free in the next cycle
> 
> We've been using FastShutdownForPageCount instead of this patch for a while
now
> and it seems to work fine. None of the old shutdown crashes have reappeared in
> our logs.
> 
> Thanks!

Thanks for circling back. I'm glad it's working for you

Powered by Google App Engine
This is Rietveld 408576698