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

Issue 413993002: LeakDetector: Terminate all WebEmbeddedWorkerImpl before counting (Closed)

Created:
6 years, 5 months ago by kouhei (in TOK)
Modified:
6 years, 4 months ago
Reviewers:
michaeln, falken, nhiroki, tkent
CC:
blink-reviews, Dai Mikurube (NOT FULLTIME), hajimehoshi, haraken
Project:
blink
Visibility:
Public.

Description

LeakDetector: Terminate all WebEmbeddedWorkerImpl before counting Before this patch, the document held by ServiceWorker registered by the LayoutTests were detected as leaks. The service worker is designed to live longer than registerer document. The service worker implementation, |WebEmbeddedWorkerImpl| carries a |WebFrame| to hold a resource loader. The frame has its associating document, and it confused WebLeakDetector. This patch work arounds the issue by terminating all |WebEmbeddedWorkerImpl| instances before counting number of documents. BUG=396493 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178996

Patch Set 1 #

Total comments: 6

Patch Set 2 : rename set #

Total comments: 1

Patch Set 3 : comment #

Total comments: 1

Patch Set 4 : wrap #

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

Messages

Total messages: 14 (0 generated)
kouhei (in TOK)
Would you take a look?
6 years, 5 months ago (2014-07-24 07:25:05 UTC) #1
michaeln
https://codereview.chromium.org/413993002/diff/1/Source/web/WebLeakDetector.cpp File Source/web/WebLeakDetector.cpp (right): https://codereview.chromium.org/413993002/diff/1/Source/web/WebLeakDetector.cpp#newcode86 Source/web/WebLeakDetector.cpp:86: WebEmbeddedWorkerImpl::terminateAll(); i think it will take some time to ...
6 years, 5 months ago (2014-07-25 00:07:09 UTC) #2
kouhei (in TOK)
https://codereview.chromium.org/413993002/diff/1/Source/web/WebLeakDetector.cpp File Source/web/WebLeakDetector.cpp (right): https://codereview.chromium.org/413993002/diff/1/Source/web/WebLeakDetector.cpp#newcode86 Source/web/WebLeakDetector.cpp:86: WebEmbeddedWorkerImpl::terminateAll(); On 2014/07/25 00:07:09, michaeln wrote: > i think ...
6 years, 5 months ago (2014-07-25 01:33:10 UTC) #3
michaeln
https://codereview.chromium.org/413993002/diff/1/Source/web/WebEmbeddedWorkerImpl.cpp File Source/web/WebEmbeddedWorkerImpl.cpp (right): https://codereview.chromium.org/413993002/diff/1/Source/web/WebEmbeddedWorkerImpl.cpp#newcode149 Source/web/WebEmbeddedWorkerImpl.cpp:149: static HashSet<WebEmbeddedWorkerImpl*>& aliveWebEmbeddedWorkerImplInstances() this is long'ish, runningWorkerInstances()? https://codereview.chromium.org/413993002/diff/1/Source/web/WebLeakDetector.cpp File ...
6 years, 5 months ago (2014-07-25 02:49:52 UTC) #4
kouhei (in TOK)
https://codereview.chromium.org/413993002/diff/1/Source/web/WebEmbeddedWorkerImpl.cpp File Source/web/WebEmbeddedWorkerImpl.cpp (right): https://codereview.chromium.org/413993002/diff/1/Source/web/WebEmbeddedWorkerImpl.cpp#newcode149 Source/web/WebEmbeddedWorkerImpl.cpp:149: static HashSet<WebEmbeddedWorkerImpl*>& aliveWebEmbeddedWorkerImplInstances() On 2014/07/25 02:49:52, michaeln wrote: > ...
6 years, 5 months ago (2014-07-25 05:00:39 UTC) #5
michaeln
lgtm https://codereview.chromium.org/413993002/diff/20001/Source/web/WebEmbeddedWorkerImpl.h File Source/web/WebEmbeddedWorkerImpl.h (right): https://codereview.chromium.org/413993002/diff/20001/Source/web/WebEmbeddedWorkerImpl.h#newcode60 Source/web/WebEmbeddedWorkerImpl.h:60: static void terminateAll(); maybe add a comment about ...
6 years, 4 months ago (2014-07-25 19:54:00 UTC) #6
kouhei (in TOK)
Thanks for review! I'll give this a try. > https://codereview.chromium.org/413993002/diff/20001/Source/web/WebEmbeddedWorkerImpl.h > File Source/web/WebEmbeddedWorkerImpl.h (right): > ...
6 years, 4 months ago (2014-07-28 00:34:21 UTC) #7
kouhei (in TOK)
6 years, 4 months ago (2014-07-28 00:34:32 UTC) #8
kouhei (in TOK)
tkent: Would you do an owner review?
6 years, 4 months ago (2014-07-28 00:34:45 UTC) #9
tkent
lgtm https://codereview.chromium.org/413993002/diff/40001/Source/web/WebEmbeddedWorkerImpl.h File Source/web/WebEmbeddedWorkerImpl.h (right): https://codereview.chromium.org/413993002/diff/40001/Source/web/WebEmbeddedWorkerImpl.h#newcode61 Source/web/WebEmbeddedWorkerImpl.h:61: // Note that this only schedules termination and ...
6 years, 4 months ago (2014-07-28 00:42:48 UTC) #10
kouhei (in TOK)
The CQ bit was checked by kouhei@chromium.org
6 years, 4 months ago (2014-07-28 00:44:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/413993002/60001
6 years, 4 months ago (2014-07-28 00:44:47 UTC) #12
kouhei (in TOK)
Thanks for review! Comments wrapped.
6 years, 4 months ago (2014-07-28 00:44:52 UTC) #13
commit-bot: I haz the power
6 years, 4 months ago (2014-07-28 01:47:31 UTC) #14
Message was sent while issue was closed.
Change committed as 178996

Powered by Google App Engine
This is Rietveld 408576698