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

Issue 1962113003: Make ActiveScriptWrappable the GC mixin it is. (Closed)

Created:
4 years, 7 months ago by sof
Modified:
4 years, 7 months ago
Reviewers:
haraken, hongchan
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, haraken, serviceworker-reviews, tzik, blink-reviews-html_chromium.org, kinuko+serviceworker, nhiroki, Raymond Toy, falken, kinuko+worker_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, blink-reviews, horo+watch_chromium.org, hongchan, blink-worker-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ActiveScriptWrappable the GC mixin it is. By switching it to derive from GarbageCollectedMixin, and have the per-thread set of live wrappables keep WeakMember<> references, the Oilpan GC takes care of pruning the live set as part of its weak processing. R= BUG= Committed: https://crrev.com/8bf3416c05e0d27a3151f68cac503de278468da7 Cr-Commit-Position: refs/heads/master@{#392618}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -19 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.h View 3 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp View 2 chunks +3 lines, -6 lines 2 comments Download
M third_party/WebKit/Source/core/html/HTMLImageElement.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/Worker.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorker.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Body.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Response.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.h View 1 chunk +1 line, -0 lines 2 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.h View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
haraken
LGTM https://codereview.chromium.org/1962113003/diff/1/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp File third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp (right): https://codereview.chromium.org/1962113003/diff/1/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp#newcode20 third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp:20: DEFINE_THREAD_SAFE_STATIC_LOCAL(ThreadSpecific<ActiveScriptWrappableSetType>, activeScriptWrappableSet, new ThreadSpecific<ActiveScriptWrappableSetType>()); Not directly related to ...
4 years, 7 months ago (2016-05-10 07:10:27 UTC) #2
sof
https://codereview.chromium.org/1962113003/diff/1/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp File third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp (right): https://codereview.chromium.org/1962113003/diff/1/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp#newcode20 third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp:20: DEFINE_THREAD_SAFE_STATIC_LOCAL(ThreadSpecific<ActiveScriptWrappableSetType>, activeScriptWrappableSet, new ThreadSpecific<ActiveScriptWrappableSetType>()); On 2016/05/10 07:10:27, haraken wrote: ...
4 years, 7 months ago (2016-05-10 15:46:04 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1962113003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1962113003/1
4 years, 7 months ago (2016-05-10 15:48:34 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-10 15:52:18 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/8bf3416c05e0d27a3151f68cac503de278468da7 Cr-Commit-Position: refs/heads/master@{#392618}
4 years, 7 months ago (2016-05-10 15:53:21 UTC) #10
hongchan
I know the CL is already landed, and I am not the designated reviewer - ...
4 years, 7 months ago (2016-05-10 16:58:29 UTC) #12
sof
4 years, 7 months ago (2016-05-10 19:02:01 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/1962113003/diff/1/third_party/WebKit/Source/m...
File third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.h (right):

https://codereview.chromium.org/1962113003/diff/1/third_party/WebKit/Source/m...
third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.h:143:
USING_GARBAGE_COLLECTED_MIXIN(AudioBufferSourceNode);
On 2016/05/10 16:58:28, hoch wrote:
> AudioScheduledSourceNode already has mixin. Is this necessary?
> 
> If this is necessary, OsciallatorNode also should be taken care of.

Thanks for catching that, it is unnecessary as it only extends its only
(leftmost) derived class.

Let's remove it, see https://codereview.chromium.org/1969453003/

Powered by Google App Engine
This is Rietveld 408576698