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

Issue 1041053005: Oilpan: fix WorkerThreadStartupData finalization handling. (Closed)

Created:
5 years, 8 months ago by sof
Modified:
5 years, 8 months ago
Reviewers:
oilpan-reviews, haraken
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, kinuko+serviceworker, kinuko+worker_chromium.org, horo+watch_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: fix WorkerThreadStartupData finalization handling. The WorkerThreadStartupData structure is used at creation-time to configure new worker threads and their global scopes. To simplify its lifetime and have the owning worker thread do the finalization, move this structure off the heap. The motivation for it being on the heap wasn't entirely compelling to start with (introduced by https://codereview.chromium.org/191003010.) R=haraken BUG=472044 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192926

Patch Set 1 #

Patch Set 2 : Use CrossThreadPersistent #

Total comments: 6

Patch Set 3 : add comment clarifying use of CrossThreadPersistent<> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -57 lines) Patch
M Source/core/workers/DedicatedWorkerGlobalScope.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/workers/DedicatedWorkerGlobalScope.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/workers/DedicatedWorkerThread.h View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/workers/DedicatedWorkerThread.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/workers/SharedWorkerGlobalScope.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/workers/SharedWorkerGlobalScope.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/workers/SharedWorkerThread.h View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/workers/SharedWorkerThread.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/workers/WorkerMessagingProxy.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/workers/WorkerMessagingProxy.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/workers/WorkerThread.h View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/workers/WorkerThread.cpp View 2 chunks +1 line, -3 lines 0 comments Download
M Source/core/workers/WorkerThreadStartupData.h View 1 2 2 chunks +13 lines, -7 lines 0 comments Download
M Source/core/workers/WorkerThreadStartupData.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/modules/compositorworker/CompositorWorkerGlobalScope.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M Source/modules/compositorworker/CompositorWorkerMessagingProxy.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/compositorworker/CompositorWorkerMessagingProxy.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/compositorworker/CompositorWorkerThread.h View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/compositorworker/CompositorWorkerThread.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerThread.h View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerThread.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/platform/heap/Handle.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M Source/web/WebEmbeddedWorkerImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebSharedWorkerImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (4 generated)
sof
please take a look. The finalization point of WorkerThreadStartupData was a bit too implicit for ...
5 years, 8 months ago (2015-03-31 21:40:51 UTC) #2
haraken
LGTM https://codereview.chromium.org/1041053005/diff/20001/Source/core/workers/WorkerThreadStartupData.h File Source/core/workers/WorkerThreadStartupData.h (right): https://codereview.chromium.org/1041053005/diff/20001/Source/core/workers/WorkerThreadStartupData.h#newcode81 Source/core/workers/WorkerThreadStartupData.h:81: Add a comment and mention that this needs ...
5 years, 8 months ago (2015-03-31 23:29:34 UTC) #4
sof
https://codereview.chromium.org/1041053005/diff/20001/Source/core/workers/WorkerThreadStartupData.h File Source/core/workers/WorkerThreadStartupData.h (right): https://codereview.chromium.org/1041053005/diff/20001/Source/core/workers/WorkerThreadStartupData.h#newcode81 Source/core/workers/WorkerThreadStartupData.h:81: On 2015/03/31 23:29:33, haraken wrote: > > Add a ...
5 years, 8 months ago (2015-04-01 08:05:10 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1041053005/40001
5 years, 8 months ago (2015-04-01 08:45:39 UTC) #8
commit-bot: I haz the power
5 years, 8 months ago (2015-04-01 11:45:05 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192926

Powered by Google App Engine
This is Rietveld 408576698