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

Issue 452043002: InjectedScriptManager::CallbackData should be disposed when an associated worker thread terminates (Closed)

Created:
6 years, 4 months ago by haraken
Modified:
6 years, 4 months ago
CC:
blink-reviews, vsevik+blink_chromium.org, caseq+blink_chromium.org, arv+blink, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, abarth-chromium, loislo+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, blink-reviews-bindings_chromium.org, devtools-reviews_chromium.org, apavlov+blink_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Project:
blink
Visibility:
Public.

Description

InjectedScriptManager::CallbackData should be disposed when an associated worker thread terminates CallbackData created by InjectedScriptManager should be deleted when an associated worker thread terminates. The most straightforward way to do that is to make the InjectedScriptManager hold a list of OwnPtr<CallbackData> that the InjectedScriptManager created. Since the the InjectedScriptManager is destructed in ~WorkerScriptController(), it's guaranteed that all associated CallbackData is destructed in ~WorkerScriptController() as well. This change will fix a couple of inspector-protocol/debugger tests in oilpan builds. BUG=398472 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179905

Patch Set 1 #

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -29 lines) Patch
M Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp View 1 3 chunks +39 lines, -28 lines 2 comments Download
M Source/core/inspector/InjectedScriptManager.h View 3 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
haraken
yurys@: PTAL I noticed that all wrappers in DOMWrapperMap are already handled correctly when a ...
6 years, 4 months ago (2014-08-08 10:20:32 UTC) #1
yurys
LGTM. Would be nice to eventually make InjectedScriptHost use the same wrapper creation logic as ...
6 years, 4 months ago (2014-08-08 12:23:22 UTC) #2
yurys
The CQ bit was checked by yurys@chromium.org
6 years, 4 months ago (2014-08-08 12:24:34 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/452043002/1
6 years, 4 months ago (2014-08-08 12:25:10 UTC) #4
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-08 13:49:40 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-08 14:06:51 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu_triggered_tests/builds/33235)
6 years, 4 months ago (2014-08-08 14:06:52 UTC) #7
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 4 months ago (2014-08-11 02:09:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/452043002/20001
6 years, 4 months ago (2014-08-11 02:09:40 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-11 03:08:49 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-11 03:48:17 UTC) #11
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/21948)
6 years, 4 months ago (2014-08-11 03:48:18 UTC) #12
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 4 months ago (2014-08-11 03:48:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/452043002/20001
6 years, 4 months ago (2014-08-11 03:48:42 UTC) #14
commit-bot: I haz the power
Change committed as 179905
6 years, 4 months ago (2014-08-11 04:18:26 UTC) #15
aandrey
https://codereview.chromium.org/452043002/diff/20001/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp File Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp (right): https://codereview.chromium.org/452043002/diff/20001/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp#newcode60 Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp:60: fprintf(stderr, "b %p\n", callbackData); this also got commited
6 years, 4 months ago (2014-08-11 07:36:17 UTC) #16
haraken
https://codereview.chromium.org/452043002/diff/20001/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp File Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp (right): https://codereview.chromium.org/452043002/diff/20001/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp#newcode60 Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp:60: fprintf(stderr, "b %p\n", callbackData); On 2014/08/11 07:36:17, aandrey wrote: ...
6 years, 4 months ago (2014-08-11 07:40:20 UTC) #17
haraken
6 years, 4 months ago (2014-08-11 07:40:28 UTC) #18
Message was sent while issue was closed.
On 2014/08/11 07:40:20, haraken wrote:
>
https://codereview.chromium.org/452043002/diff/20001/Source/bindings/core/v8/...
> File Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp (right):
> 
>
https://codereview.chromium.org/452043002/diff/20001/Source/bindings/core/v8/...
> Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp:60: fprintf(stderr,
> "b %p\n", callbackData);
> On 2014/08/11 07:36:17, aandrey wrote:
> > this also got commited
> 
> oh, sorry. Let me fix it asap.

Fixed in r179913.

Powered by Google App Engine
This is Rietveld 408576698