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

Issue 1257653007: Oilpan: Remove raw pointer to InProcessWorkerBase from WorkerMessagingProxy (Closed)

Created:
5 years, 4 months ago by keishi
Modified:
5 years, 4 months ago
CC:
blink-reviews, kinuko+worker_chromium.org, horo+watch_chromium.org, falken, blink-worker-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: Remove raw pointer to InProcessWorkerBase from WorkerMessagingProxy BUG=509911

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M Source/core/workers/WorkerMessagingProxy.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
keishi
WorkerMessagingProxy deletes itself from WorkerMessagingProxy::workerThreadTerminated. When I don't do this, WorkerMessagingProxy gets finalized when exiting ...
5 years, 4 months ago (2015-07-29 21:15:16 UTC) #2
haraken
Moving WorkerGlobalScopeProxy to the heap will make things complicated... Maybe a better fix would be: ...
5 years, 4 months ago (2015-07-30 11:46:32 UTC) #3
haraken
On 2015/07/30 11:46:32, haraken wrote: > Moving WorkerGlobalScopeProxy to the heap will make things complicated... ...
5 years, 4 months ago (2015-07-30 14:22:38 UTC) #4
keishi
On 2015/07/30 14:22:38, haraken wrote: > On 2015/07/30 11:46:32, haraken wrote: > > Moving WorkerGlobalScopeProxy ...
5 years, 4 months ago (2015-08-13 06:52:25 UTC) #5
haraken
5 years, 4 months ago (2015-08-13 07:47:43 UTC) #6
On 2015/08/13 06:52:25, keishi wrote:
> On 2015/07/30 14:22:38, haraken wrote:
> > On 2015/07/30 11:46:32, haraken wrote:
> > > Moving WorkerGlobalScopeProxy to the heap will make things complicated...
> > Maybe
> > > a better fix would be:
> > > 
> > > - Keep WorkerGlobalScopeProxy off-heap.
> > > - Introduce WeakPersistent.
> > > - Use a WeakPersistent from the WorkerGlobalScopeProxy to
> InProcessWorkerBase?
> > 
> > WeakPersistent was landed.
> 
> Done. WorkerGlobalScopeProxy is guaranteed to outlives the worker so I think
it
> is fine for the ~InProcessWorkerBase to call
> m_contextProxy->workerObjectDestroyed().

Sounds reasonable.

But sorry, this is going to be addressed by peria-san moving AbstractWorker to
the heap. So let's land https://codereview.chromium.org/1212643004/ instead.

Powered by Google App Engine
This is Rietveld 408576698