Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(15)

Issue 1200333006: Oilpan: Support nested pre-finalizers (Closed)

Created:
4 years, 10 months ago by haraken
Modified:
4 years, 10 months ago
CC:
blink-reviews, nessy, oilpan-reviews, Mads Ager (chromium), mlamouri+watch-blink_chromium.org, philipj_slow, gasubic, fs, eric.carlson_apple.com, Raymond Toy, feature-media-reviews_chromium.org, dglazkov+blink, blink-reviews-html_chromium.org, kouhei+heap_chromium.org, vcarbune.chromium
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: Support nested pre-finalizers The current problematic constraint of the pre-finalizer is that it is not nestable. This CL supports nested pre-finalizers like this: class A : public GarbageCollected<A> { USING_PRE_FINALIZER(A, dispose); A() { ThreadState::current()->registerPreFinalizer(this); } void dispose() { } }; class B : public GarbageCollectedMixin { USING_PRE_FINALIZER(B, dispose); B() { ThreadState::current()->registerPreFinalizer(this); } void dispose() { } }; class C : public A, public B { USING_PRE_FINALIZER(C, dispose); C() { ThreadState::current()->registerPreFinalizer(this); } void dispose() { } }; BUG=420515 TEST=HeapTest.NestedPrefinalizers Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197886

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 14

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -72 lines) Patch
M Source/core/frame/LocalDOMWindow.h View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/AudioNode.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/heap/HeapTest.cpp View 1 2 3 4 8 chunks +95 lines, -10 lines 0 comments Download
M Source/platform/heap/ThreadState.h View 1 2 3 4 5 6 chunks +58 lines, -45 lines 0 comments Download
M Source/platform/heap/ThreadState.cpp View 1 2 3 4 5 2 chunks +14 lines, -13 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
haraken
PTAL
4 years, 10 months ago (2015-06-24 07:56:50 UTC) #2
haraken
+yutak about plugin issues. https://codereview.chromium.org/1200333006/diff/1/Source/platform/heap/HeapTest.cpp File Source/platform/heap/HeapTest.cpp (right): https://codereview.chromium.org/1200333006/diff/1/Source/platform/heap/HeapTest.cpp#newcode1195 Source/platform/heap/HeapTest.cpp:1195: class ObservableWithPreFinalizer : public GarbageCollectedFinalized<ObservableWithPreFinalizer> ...
4 years, 10 months ago (2015-06-24 07:59:28 UTC) #4
Raymond Toy
lgtm
4 years, 10 months ago (2015-06-24 11:00:47 UTC) #6
sof
https://codereview.chromium.org/1200333006/diff/1/Source/platform/heap/HeapTest.cpp File Source/platform/heap/HeapTest.cpp (right): https://codereview.chromium.org/1200333006/diff/1/Source/platform/heap/HeapTest.cpp#newcode1200 Source/platform/heap/HeapTest.cpp:1200: DEFINE_INLINE_VIRTUAL_TRACE() { } On 2015/06/24 07:59:27, haraken wrote: > ...
4 years, 10 months ago (2015-06-24 11:21:57 UTC) #7
haraken
Thanks for review! https://codereview.chromium.org/1200333006/diff/1/Source/platform/heap/HeapTest.cpp File Source/platform/heap/HeapTest.cpp (right): https://codereview.chromium.org/1200333006/diff/1/Source/platform/heap/HeapTest.cpp#newcode1200 Source/platform/heap/HeapTest.cpp:1200: DEFINE_INLINE_VIRTUAL_TRACE() { } On 2015/06/24 11:21:56, ...
4 years, 10 months ago (2015-06-24 12:54:01 UTC) #8
sof
lgtm. re: mixins - we'll just have to find out if this is a real ...
4 years, 10 months ago (2015-06-24 13:40:32 UTC) #9
haraken
https://codereview.chromium.org/1200333006/diff/60001/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/1200333006/diff/60001/Source/platform/heap/ThreadState.cpp#newcode1317 Source/platform/heap/ThreadState.cpp:1317: for (size_t i = 1; i < callbackVector->size(); i++) ...
4 years, 10 months ago (2015-06-24 13:47:50 UTC) #10
haraken
On 2015/06/24 13:47:50, haraken wrote: > https://codereview.chromium.org/1200333006/diff/60001/Source/platform/heap/ThreadState.cpp > File Source/platform/heap/ThreadState.cpp (right): > > https://codereview.chromium.org/1200333006/diff/60001/Source/platform/heap/ThreadState.cpp#newcode1317 > ...
4 years, 10 months ago (2015-06-24 15:15:10 UTC) #11
haraken
Now it looks safe to land this.
4 years, 10 months ago (2015-06-26 04:02:37 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1200333006/100001
4 years, 10 months ago (2015-06-26 04:02:50 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2015-06-26 04:06:23 UTC) #16
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197886

Powered by Google App Engine
This is Rietveld 408576698