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

Issue 221823002: Oilpan: add explicit Persistent<T>(T&) and Member<T>(T&) constructors. (Closed)

Created:
6 years, 8 months ago by sof
Modified:
6 years, 8 months ago
CC:
blink-reviews, kouhei+heap_chromium.org, Mads Ager (chromium)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Oilpan: add explicit Persistent<T>(T&) and Member<T>(T&) constructors. Synchronize with RefPtr<T>(T&)'s constructor offering and provide same, explicit constructors taking a reference. Make use of it in PostMessageTimer and WorkerThreadableWebSocketChannel. R=haraken@chromium.org,ager@chromium.org BUG=340522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170792

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rebased and moved into platform/heap/Handle.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -12 lines) Patch
M Source/core/frame/DOMWindow.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/websockets/WebSocketChannel.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/websockets/WorkerThreadableWebSocketChannel.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/heap/Handle.h View 1 3 chunks +23 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
sof
Please take a look. Following up on an earlier issue - no harm in doing ...
6 years, 8 months ago (2014-04-02 07:46:42 UTC) #1
haraken
https://codereview.chromium.org/221823002/diff/1/Source/heap/Handle.h File Source/heap/Handle.h (right): https://codereview.chromium.org/221823002/diff/1/Source/heap/Handle.h#newcode450 Source/heap/Handle.h:450: COMPILE_ASSERT_IS_GARBAGE_COLLECTED(T, NonGarbageCollectedObjectInMember); Can we implement ASSERT_IS_VALID_MEMBER_POINTER as well?
6 years, 8 months ago (2014-04-02 07:49:41 UTC) #2
sof
https://codereview.chromium.org/221823002/diff/1/Source/heap/Handle.h File Source/heap/Handle.h (right): https://codereview.chromium.org/221823002/diff/1/Source/heap/Handle.h#newcode450 Source/heap/Handle.h:450: COMPILE_ASSERT_IS_GARBAGE_COLLECTED(T, NonGarbageCollectedObjectInMember); On 2014/04/02 07:49:41, haraken wrote: > > ...
6 years, 8 months ago (2014-04-02 08:05:49 UTC) #3
haraken
LGTM https://codereview.chromium.org/221823002/diff/1/Source/heap/Handle.h File Source/heap/Handle.h (right): https://codereview.chromium.org/221823002/diff/1/Source/heap/Handle.h#newcode450 Source/heap/Handle.h:450: COMPILE_ASSERT_IS_GARBAGE_COLLECTED(T, NonGarbageCollectedObjectInMember); On 2014/04/02 08:05:50, sof wrote: > ...
6 years, 8 months ago (2014-04-02 08:09:29 UTC) #4
sof
https://codereview.chromium.org/221823002/diff/1/Source/heap/Handle.h File Source/heap/Handle.h (right): https://codereview.chromium.org/221823002/diff/1/Source/heap/Handle.h#newcode450 Source/heap/Handle.h:450: COMPILE_ASSERT_IS_GARBAGE_COLLECTED(T, NonGarbageCollectedObjectInMember); On 2014/04/02 08:09:29, haraken wrote: > On ...
6 years, 8 months ago (2014-04-02 08:12:54 UTC) #5
haraken
https://codereview.chromium.org/221823002/diff/1/Source/heap/Handle.h File Source/heap/Handle.h (right): https://codereview.chromium.org/221823002/diff/1/Source/heap/Handle.h#newcode450 Source/heap/Handle.h:450: COMPILE_ASSERT_IS_GARBAGE_COLLECTED(T, NonGarbageCollectedObjectInMember); On 2014/04/02 08:12:54, sof wrote: > On ...
6 years, 8 months ago (2014-04-02 08:15:41 UTC) #6
haraken
The only thing we have to care about is that a Member must not outlive ...
6 years, 8 months ago (2014-04-02 08:21:12 UTC) #7
Mads Ager (chromium)
LGTM https://codereview.chromium.org/221823002/diff/1/Source/heap/Handle.h File Source/heap/Handle.h (right): https://codereview.chromium.org/221823002/diff/1/Source/heap/Handle.h#newcode450 Source/heap/Handle.h:450: COMPILE_ASSERT_IS_GARBAGE_COLLECTED(T, NonGarbageCollectedObjectInMember); On 2014/04/02 08:15:41, haraken wrote: > ...
6 years, 8 months ago (2014-04-02 08:22:03 UTC) #8
tkent
> I think some classes in webdatabase/ are using cross-thread Members. Yeah, there are some ...
6 years, 8 months ago (2014-04-02 08:26:09 UTC) #9
sof
On 2014/04/02 08:26:09, tkent wrote: > > I think some classes in webdatabase/ are using ...
6 years, 8 months ago (2014-04-02 08:32:23 UTC) #10
haraken
On 2014/04/02 08:32:23, sof wrote: > On 2014/04/02 08:26:09, tkent wrote: > > > I ...
6 years, 8 months ago (2014-04-02 08:34:10 UTC) #11
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 8 months ago (2014-04-03 19:39:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/221823002/20001
6 years, 8 months ago (2014-04-03 19:39:05 UTC) #13
sof
The CQ bit was unchecked by sigbjornf@opera.com
6 years, 8 months ago (2014-04-03 20:55:17 UTC) #14
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 8 months ago (2014-04-03 20:55:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/221823002/20001
6 years, 8 months ago (2014-04-03 20:56:01 UTC) #16
commit-bot: I haz the power
6 years, 8 months ago (2014-04-03 20:57:02 UTC) #17
Message was sent while issue was closed.
Change committed as 170792

Powered by Google App Engine
This is Rietveld 408576698