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

Issue 1851383002: Make WTF::IsGarbageCollectedType<> work for GC mixin instances. (Closed)

Created:
4 years, 8 months ago by sof
Modified:
4 years, 8 months ago
Reviewers:
oilpan-reviews, haraken
CC:
chromium-reviews, szager+layoutwatch_chromium.org, oilpan-reviews, Mads Ager (chromium), zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews, kinuko+watch, kouhei+heap_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make WTF::IsGarbageCollectedType<> work for GC mixin instances. The trick that IsGarbageCollectedType<T> uses of probing for the presence of a "marker" type name within T to detect if T derives from a GC base or is another kind of heap object, doesn't work for GC mixins. For instance, class Mixin : public GarbageCollectedMixin { ... }; class Use : public GarbageCollected<Use>, public Mixin { USING_GARBAGE_COLLECTED_MIXIN(Use); ... }; As both GarbageCollected<> and GarbageCollectedMixin<> provide the marker type name, referring to the marker type name is ambiguous when attempted over Use. Address the problem by overriding and defining the marker for mixin instances also. R=haraken BUG= Committed: https://crrev.com/c3930ed530f6384d08ee0dcf4df33d911ae506ac Cr-Commit-Position: refs/heads/master@{#384851}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M third_party/WebKit/Source/core/layout/LayoutBlock.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/GarbageCollected.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapTest.cpp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
sof
please take a look. I wonder how this one has gone undetected.
4 years, 8 months ago (2016-04-03 20:15:55 UTC) #2
haraken
LGTM
4 years, 8 months ago (2016-04-03 23:37:13 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851383002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851383002/1
4 years, 8 months ago (2016-04-04 05:06:55 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-04 06:02:16 UTC) #8
commit-bot: I haz the power
4 years, 8 months ago (2016-04-04 06:03:32 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/c3930ed530f6384d08ee0dcf4df33d911ae506ac
Cr-Commit-Position: refs/heads/master@{#384851}

Powered by Google App Engine
This is Rietveld 408576698