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

Issue 151125: Fix the GC of workers. When Worker object is GC'ed in the renderer, we need t... (Closed)

Created:
11 years, 5 months ago by Dmitry Titov
Modified:
9 years, 7 months ago
Reviewers:
jam
CC:
chromium-reviews_googlegroups.com, darin (slow to review), Ben Goodger (Google)
Visibility:
Public.

Description

Fix the GC of workers. When Worker object is GC'ed in the renderer, we need to terminate the worker process. BUG=15647, 15759 TEST=new ui_test is part of this CL Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=20034

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 3

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -6 lines) Patch
M chrome/renderer/webworker_proxy.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/webworker_proxy.cc View 1 2 3 4 2 chunks +15 lines, -5 lines 0 comments Download
M webkit/glue/webworker_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/webworker_impl.cc View 1 3 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Dmitry Titov
We already had code that terminated the worker process as response to a direct 'terminate' ...
11 years, 5 months ago (2009-07-01 00:08:49 UTC) #1
jam
Actually ~WebWorkerProxy is called, the problem is that terminateWorkerContext() had already set route_id_ to MSG_ROUTING_NONE ...
11 years, 5 months ago (2009-07-01 02:24:09 UTC) #2
Dmitry Titov
I am not sure fix for what is that 1-liner... The ~WebWorkerProxy is get called, ...
11 years, 5 months ago (2009-07-01 02:50:18 UTC) #3
Dmitry Titov
Please use the review tool for comments. Added the second bug reference, with a GC-related ...
11 years, 5 months ago (2009-07-01 18:08:26 UTC) #4
Dmitry Titov
Uploaded updated version. Works fine as I can tell. Lets keep replies in this tool ...
11 years, 5 months ago (2009-07-01 22:48:37 UTC) #5
jam
http://codereview.chromium.org/151125/diff/49/53 File chrome/renderer/webworker_proxy.cc (right): http://codereview.chromium.org/151125/diff/49/53#newcode30 Line 30: if (queued_messages_.empty()) this check isn't needed anymore http://codereview.chromium.org/151125/diff/49/53#newcode38 ...
11 years, 5 months ago (2009-07-02 01:22:57 UTC) #6
Dmitry Titov
On 2009/07/02 01:22:57, John Abd-El-Malek wrote: > http://codereview.chromium.org/151125/diff/49/53 > File chrome/renderer/webworker_proxy.cc (right): > > http://codereview.chromium.org/151125/diff/49/53#newcode30 ...
11 years, 5 months ago (2009-07-02 01:39:42 UTC) #7
jam
lgtm
11 years, 5 months ago (2009-07-02 01:57:25 UTC) #8
jam
11 years, 5 months ago (2009-07-02 02:43:37 UTC) #9
On 2009/07/02 01:57:25, John Abd-El-Malek wrote:
> lgtm

btw, given that we've regressed on this bug once already, I think a UI test
should be added (should be easy to do given the test case you had).  Doesn't
have to be in this changelist, but if not, then a bug should be filed to track
it.

Powered by Google App Engine
This is Rietveld 408576698