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

Issue 1308313002: [Oilpan] Change pointer type to RefPtrWillBePersistent (Closed)

Created:
5 years, 4 months ago by peria
Modified:
5 years, 3 months ago
Reviewers:
oilpan-reviews, haraken
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Change pointer type of WebLocalFrameImpl from raw pointers to RefPtrWillBePersistent in WebEmbeddedWorkerImpl and WebSharedWorkerImpl. Those member variables are instantiated with WebLocalFrame::create(), and it actually creates a WebLocalFrameImpl instance. On Oilpan build, WebLocalFrameImpl has a self-referential persistent to keep itself alive, and it will be cleared on call of WebLocalFrameImpl::close(). In those two classes, m_mainFrame->close() is called in destructors, so the self referential persistent is cleared in destruction on Oilpan build. Beside it, on both non-Oilpan build and Oilpan build, m_mainFrame is also cleared and should be released. BUG=509911 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201191

Patch Set 1 #

Patch Set 2 : Change RawPtr to RefPtr on non-Oilpan build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M Source/web/WebEmbeddedWorkerImpl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebEmbeddedWorkerImpl.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/web/WebSharedWorkerImpl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebSharedWorkerImpl.cpp View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
peria
PTL
5 years, 4 months ago (2015-08-25 03:47:46 UTC) #2
haraken
Would you elaborate on why the RawPtrWillBePersistent doesn't cause a leak?
5 years, 4 months ago (2015-08-25 03:50:17 UTC) #3
peria
On 2015/08/25 03:50:17, haraken wrote: > Would you elaborate on why the RawPtrWillBePersistent doesn't cause ...
5 years, 4 months ago (2015-08-25 04:15:06 UTC) #4
haraken
On 2015/08/25 04:15:06, peria wrote: > On 2015/08/25 03:50:17, haraken wrote: > > Would you ...
5 years, 4 months ago (2015-08-25 05:15:19 UTC) #5
peria
On 2015/08/25 05:15:19, haraken wrote: > On 2015/08/25 04:15:06, peria wrote: > > On 2015/08/25 ...
5 years, 4 months ago (2015-08-25 05:22:43 UTC) #6
haraken
On 2015/08/25 05:22:43, peria wrote: > On 2015/08/25 05:15:19, haraken wrote: > > On 2015/08/25 ...
5 years, 4 months ago (2015-08-25 05:27:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308313002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308313002/1
5 years, 4 months ago (2015-08-25 05:32:27 UTC) #9
peria
On 2015/08/25 05:27:25, haraken wrote: > On 2015/08/25 05:22:43, peria wrote: > > On 2015/08/25 ...
5 years, 4 months ago (2015-08-25 06:46:58 UTC) #11
peria
PTAL for just in case.
5 years, 4 months ago (2015-08-25 07:55:45 UTC) #12
haraken
LGTM
5 years, 4 months ago (2015-08-25 07:57:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308313002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308313002/20001
5 years, 4 months ago (2015-08-25 08:03:19 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/103697)
5 years, 4 months ago (2015-08-25 08:55:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308313002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308313002/20001
5 years, 3 months ago (2015-08-26 02:38:38 UTC) #19
commit-bot: I haz the power
5 years, 3 months ago (2015-08-26 03:18:10 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201191

Powered by Google App Engine
This is Rietveld 408576698