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

Issue 1040703002: Oilpan: avoid InjectedScriptManager::CallbackData-induced leaks. (Closed)

Created:
5 years, 9 months ago by sof
Modified:
5 years, 9 months ago
Reviewers:
oilpan-reviews, haraken
CC:
blink-reviews, eustas+blink_chromium.org, caseq+blink_chromium.org, arv+blink, vivekg_samsung, malch+blink_chromium.org, vivekg, yurys+blink_chromium.org, lushnikov+blink_chromium.org, loislo+blink_chromium.org, pfeldman+blink_chromium.org, blink-reviews-bindings_chromium.org, devtools-reviews_chromium.org, apavlov+blink_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: avoid InjectedScriptManager::CallbackData-induced leaks. Move CallbackData to the Oilpan heap, so as to avoid it having to keep a Persistent<> reference to its InjectedScriptHost. If left as a persistent, it would leave the v8 wrapper object uncollected and prevent a clean shutdown. R=haraken BUG=340522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192684

Patch Set 1 #

Patch Set 2 : non-oilpan compile fix #

Patch Set 3 : non-oilpan compile fix; less blind. #

Patch Set 4 : silly compile fix #

Total comments: 2

Patch Set 5 : Add explicit dispose() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -7 lines) Patch
M Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/inspector/InjectedScriptManager.h View 1 2 3 4 2 chunks +11 lines, -4 lines 0 comments Download
M Source/core/inspector/InjectedScriptManager.cpp View 1 2 3 4 2 chunks +25 lines, -1 line 0 comments Download

Messages

Total messages: 11 (4 generated)
sof
please take a look. Takes care of the crashes brought up by https://groups.google.com/a/chromium.org/forum/#!topic/oilpan-reviews/rclxg-m3g-4
5 years, 9 months ago (2015-03-27 13:29:09 UTC) #2
haraken
LGTM https://codereview.chromium.org/1040703002/diff/60001/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp File Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp (right): https://codereview.chromium.org/1040703002/diff/60001/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp#newcode61 Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp:61: callbackData->handle.clear(); Do we need this? (Can we rely ...
5 years, 9 months ago (2015-03-27 13:35:48 UTC) #4
sof
https://codereview.chromium.org/1040703002/diff/60001/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp File Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp (right): https://codereview.chromium.org/1040703002/diff/60001/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp#newcode61 Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp:61: callbackData->handle.clear(); On 2015/03/27 13:35:48, haraken wrote: > > Do ...
5 years, 9 months ago (2015-03-27 13:54:56 UTC) #5
haraken
On 2015/03/27 13:54:56, sof wrote: > https://codereview.chromium.org/1040703002/diff/60001/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp > File Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp (right): > > https://codereview.chromium.org/1040703002/diff/60001/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp#newcode61 > ...
5 years, 9 months ago (2015-03-27 14:06:40 UTC) #6
sof
On 2015/03/27 14:06:40, haraken wrote: > On 2015/03/27 13:54:56, sof wrote: > > > https://codereview.chromium.org/1040703002/diff/60001/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp ...
5 years, 9 months ago (2015-03-27 14:20:15 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1040703002/80001
5 years, 9 months ago (2015-03-27 14:46:08 UTC) #10
commit-bot: I haz the power
5 years, 9 months ago (2015-03-27 15:49:20 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192684

Powered by Google App Engine
This is Rietveld 408576698