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

Issue 647393002: Oilpan: Forbid adoptRef(X*) where X is RefCountedGarbageCollected (Closed)

Created:
6 years, 2 months ago by haraken
Modified:
6 years, 1 month ago
CC:
blink-reviews, mkwst+moarreviews_chromium.org, blink-reviews-wtf_chromium.org, aandrey+blink_chromium.org
Project:
blink
Visibility:
Public.

Description

Oilpan: Forbid adoptRef(X*) where X is RefCountedGarbageCollected Once https://codereview.chromium.org/614373007/ lands, the following code doesn't work as expected (It confuses reference counting). class X : public RefCountedGarbageCollected<X> { static PassRefPtr<X> create() { return adoptRef(new X); } } Instead we have to write: class X : public RefCountedGarbageCollected<X> { static X* create() { return new X; } } This CL adds a compile-time verification to detect adoptRef(X*) where X is RefCountedGarbageCollected. BUG=420515 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185124

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -24 lines) Patch
M Source/core/rendering/ClipRects.h View 1 2 3 6 chunks +4 lines, -14 lines 0 comments Download
M Source/core/rendering/RenderLayerClipper.cpp View 1 2 3 4 3 chunks +10 lines, -10 lines 0 comments Download
M Source/platform/heap/Handle.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (8 generated)
haraken
PTAL https://codereview.chromium.org/647393002/diff/1/Source/wtf/PassRefPtr.h File Source/wtf/PassRefPtr.h (right): https://codereview.chromium.org/647393002/diff/1/Source/wtf/PassRefPtr.h#newcode186 Source/wtf/PassRefPtr.h:186: template<typename T> class RefCountedGarbageCollected; I'm not sure if ...
6 years, 2 months ago (2014-10-12 15:16:45 UTC) #2
sof
This change is incompatible with what surfaced via https://codereview.chromium.org/650033002/ Is there a deeper reason why ...
6 years, 2 months ago (2014-10-13 12:11:31 UTC) #4
haraken
On 2014/10/13 12:11:31, sof wrote: > This change is incompatible with what surfaced via > ...
6 years, 2 months ago (2014-10-13 15:28:55 UTC) #5
sof
On 2014/10/13 15:28:55, haraken wrote: > On 2014/10/13 12:11:31, sof wrote: > > This change ...
6 years, 2 months ago (2014-10-14 09:47:01 UTC) #6
kouhei (in TOK)
On 2014/10/14 09:47:01, sof wrote: > On 2014/10/13 15:28:55, haraken wrote: > > On 2014/10/13 ...
6 years, 2 months ago (2014-10-14 10:27:59 UTC) #7
haraken
On 2014/10/14 10:27:59, kouhei wrote: > On 2014/10/14 09:47:01, sof wrote: > > On 2014/10/13 ...
6 years, 2 months ago (2014-10-14 10:48:01 UTC) #8
Mikhail
https://codereview.chromium.org/647393002/diff/80001/Source/wtf/PassRefPtr.h File Source/wtf/PassRefPtr.h (right): https://codereview.chromium.org/647393002/diff/80001/Source/wtf/PassRefPtr.h#newcode193 Source/wtf/PassRefPtr.h:193: COMPILE_ASSERT(notRefCountedGarbageCollected, adoptRefIsNotAllowedForRefCountedGarbageCollected); wouldn't smth like template<T> void adoptRef(const RefCountedGarbageCollected<T>*) ...
6 years, 2 months ago (2014-10-14 11:05:10 UTC) #10
sof
On 2014/10/14 10:48:01, haraken wrote: > On 2014/10/14 10:27:59, kouhei wrote: > > On 2014/10/14 ...
6 years, 1 month ago (2014-10-28 21:41:32 UTC) #11
haraken
On 2014/10/28 21:41:32, sof wrote: > On 2014/10/14 10:48:01, haraken wrote: > > On 2014/10/14 ...
6 years, 1 month ago (2014-10-29 00:49:48 UTC) #12
sof
On 2014/10/29 00:49:48, haraken wrote: > On 2014/10/28 21:41:32, sof wrote: > > On 2014/10/14 ...
6 years, 1 month ago (2014-10-29 06:22:11 UTC) #13
sof
On 2014/10/29 06:22:11, sof wrote: > On 2014/10/29 00:49:48, haraken wrote: > > On 2014/10/28 ...
6 years, 1 month ago (2014-10-29 09:24:27 UTC) #14
haraken
On 2014/10/29 09:24:27, sof wrote: > On 2014/10/29 06:22:11, sof wrote: > > On 2014/10/29 ...
6 years, 1 month ago (2014-10-29 09:30:33 UTC) #15
sof
On 2014/10/29 09:30:33, haraken wrote: > On 2014/10/29 09:24:27, sof wrote: > > On 2014/10/29 ...
6 years, 1 month ago (2014-10-29 09:53:55 UTC) #16
haraken
On 2014/10/29 09:53:55, sof wrote: > On 2014/10/29 09:30:33, haraken wrote: > > On 2014/10/29 ...
6 years, 1 month ago (2014-10-29 11:19:39 UTC) #17
sof
On 2014/10/29 11:19:39, haraken wrote: > On 2014/10/29 09:53:55, sof wrote: > > On 2014/10/29 ...
6 years, 1 month ago (2014-10-29 14:58:57 UTC) #18
haraken
On 2014/10/29 14:58:57, sof wrote: > On 2014/10/29 11:19:39, haraken wrote: > > On 2014/10/29 ...
6 years, 1 month ago (2014-10-29 15:41:00 UTC) #19
sof
On 2014/10/29 15:41:00, haraken wrote: > On 2014/10/29 14:58:57, sof wrote: > > On 2014/10/29 ...
6 years, 1 month ago (2014-10-29 15:46:30 UTC) #20
haraken
tkent-san: Would you take a look at this CL?
6 years, 1 month ago (2014-11-10 05:05:16 UTC) #21
haraken
On 2014/11/10 05:05:16, haraken wrote: > tkent-san: Would you take a look at this CL? ...
6 years, 1 month ago (2014-11-10 05:05:52 UTC) #22
tkent
https://codereview.chromium.org/647393002/diff/80001/Source/wtf/PassRefPtr.h File Source/wtf/PassRefPtr.h (right): https://codereview.chromium.org/647393002/diff/80001/Source/wtf/PassRefPtr.h#newcode193 Source/wtf/PassRefPtr.h:193: COMPILE_ASSERT(notRefCountedGarbageCollected, adoptRefIsNotAllowedForRefCountedGarbageCollected); On 2014/10/14 11:05:10, Mikhail wrote: > wouldn't ...
6 years, 1 month ago (2014-11-10 06:06:59 UTC) #23
haraken
https://codereview.chromium.org/647393002/diff/80001/Source/wtf/PassRefPtr.h File Source/wtf/PassRefPtr.h (right): https://codereview.chromium.org/647393002/diff/80001/Source/wtf/PassRefPtr.h#newcode193 Source/wtf/PassRefPtr.h:193: COMPILE_ASSERT(notRefCountedGarbageCollected, adoptRefIsNotAllowedForRefCountedGarbageCollected); On 2014/11/10 06:06:59, tkent wrote: > On ...
6 years, 1 month ago (2014-11-10 06:41:57 UTC) #24
Mikhail
https://codereview.chromium.org/647393002/diff/80001/Source/wtf/PassRefPtr.h File Source/wtf/PassRefPtr.h (right): https://codereview.chromium.org/647393002/diff/80001/Source/wtf/PassRefPtr.h#newcode193 Source/wtf/PassRefPtr.h:193: COMPILE_ASSERT(notRefCountedGarbageCollected, adoptRefIsNotAllowedForRefCountedGarbageCollected); On 2014/11/10 06:41:56, haraken wrote: > On ...
6 years, 1 month ago (2014-11-10 10:10:57 UTC) #25
haraken
On 2014/11/10 10:10:57, Mikhail wrote: > https://codereview.chromium.org/647393002/diff/80001/Source/wtf/PassRefPtr.h > File Source/wtf/PassRefPtr.h (right): > > https://codereview.chromium.org/647393002/diff/80001/Source/wtf/PassRefPtr.h#newcode193 > ...
6 years, 1 month ago (2014-11-10 11:40:51 UTC) #26
Mikhail
lgtm
6 years, 1 month ago (2014-11-10 11:54:02 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647393002/130001
6 years, 1 month ago (2014-11-10 12:13:41 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/32796)
6 years, 1 month ago (2014-11-10 12:32:09 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647393002/150001
6 years, 1 month ago (2014-11-11 06:05:35 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/35748)
6 years, 1 month ago (2014-11-11 06:25:47 UTC) #35
haraken
Mikhail: Hmm, the patch set 5 doesn't compile on Windows... Do you have any idea ...
6 years, 1 month ago (2014-11-11 08:55:41 UTC) #36
Mikhail
On 2014/11/11 08:55:41, haraken wrote: > Mikhail: Hmm, the patch set 5 doesn't compile on ...
6 years, 1 month ago (2014-11-11 10:02:54 UTC) #37
haraken
On 2014/11/11 10:02:54, Mikhail wrote: > On 2014/11/11 08:55:41, haraken wrote: > > Mikhail: Hmm, ...
6 years, 1 month ago (2014-11-11 11:22:50 UTC) #38
Mikhail
On 2014/11/11 11:22:50, haraken wrote: > On 2014/11/11 10:02:54, Mikhail wrote: > > On 2014/11/11 ...
6 years, 1 month ago (2014-11-11 12:41:28 UTC) #39
haraken
On 2014/11/11 12:41:28, Mikhail wrote: > On 2014/11/11 11:22:50, haraken wrote: > > On 2014/11/11 ...
6 years, 1 month ago (2014-11-11 12:58:48 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647393002/170001
6 years, 1 month ago (2014-11-11 12:59:06 UTC) #42
commit-bot: I haz the power
6 years, 1 month ago (2014-11-11 14:56:12 UTC) #43
Message was sent while issue was closed.
Committed patchset #6 (id:170001) as 185124

Powered by Google App Engine
This is Rietveld 408576698