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

Issue 1275863002: Oilpan: catch some self-referential leaks (main thread.) (Closed)

Created:
5 years, 4 months ago by sof
Modified:
5 years, 4 months ago
Reviewers:
oilpan-reviews, haraken
CC:
blink-reviews, oilpan-reviews, kouhei+heap_chromium.org, Mads Ager (chromium), hiroshige
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: catch some self-referential leaks (main thread.) Track the number of SelfKeepAlive<>s that are currently active on the main thread, so as to be able to detect if any remains on shutdown. A clear indication of a leak, if so. Also add some debugging support for detecting thread shutdown leaks due to Persistent<>s not being released; see PersistentRegion::dumpLivePersistents() and ThreadState::cleanup(). R=haraken BUG=420515 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200174

Patch Set 1 #

Total comments: 6

Patch Set 2 : add PersistentRegion::dumpLivePersistents() #

Patch Set 3 : include trace callbacks of live persistents #

Patch Set 4 : temporary: fix unit test #

Patch Set 5 : revert temporary change #

Patch Set 6 : rebased #

Patch Set 7 : rebase #

Patch Set 8 : add stdio.h include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -2 lines) Patch
M Source/platform/heap/Handle.h View 2 chunks +9 lines, -1 line 0 comments Download
M Source/platform/heap/PersistentNode.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M Source/platform/heap/PersistentNode.cpp View 1 2 3 4 5 6 7 2 chunks +23 lines, -0 lines 0 comments Download
M Source/platform/heap/ThreadState.h View 2 chunks +8 lines, -0 lines 0 comments Download
M Source/platform/heap/ThreadState.cpp View 1 2 3 5 chunks +31 lines, -1 line 0 comments Download

Messages

Total messages: 23 (6 generated)
sof
please take a look.
5 years, 4 months ago (2015-08-06 09:40:50 UTC) #2
haraken
https://codereview.chromium.org/1275863002/diff/1/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/1275863002/diff/1/Source/platform/heap/ThreadState.cpp#newcode1551 Source/platform/heap/ThreadState.cpp:1551: if (!ThreadState::current()->isMainThread()) Is there any reason we want to ...
5 years, 4 months ago (2015-08-06 10:30:59 UTC) #4
sof
https://codereview.chromium.org/1275863002/diff/1/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/1275863002/diff/1/Source/platform/heap/ThreadState.cpp#newcode1551 Source/platform/heap/ThreadState.cpp:1551: if (!ThreadState::current()->isMainThread()) On 2015/08/06 10:30:59, haraken wrote: > > ...
5 years, 4 months ago (2015-08-06 10:40:29 UTC) #5
haraken
ok, LGTM. https://codereview.chromium.org/1275863002/diff/1/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/1275863002/diff/1/Source/platform/heap/ThreadState.cpp#newcode1551 Source/platform/heap/ThreadState.cpp:1551: if (!ThreadState::current()->isMainThread()) On 2015/08/06 10:40:29, sof wrote: ...
5 years, 4 months ago (2015-08-06 10:42:08 UTC) #6
sof
https://codereview.chromium.org/1275863002/diff/1/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/1275863002/diff/1/Source/platform/heap/ThreadState.cpp#newcode1551 Source/platform/heap/ThreadState.cpp:1551: if (!ThreadState::current()->isMainThread()) On 2015/08/06 10:42:08, haraken wrote: > On ...
5 years, 4 months ago (2015-08-06 10:59:01 UTC) #7
haraken
https://codereview.chromium.org/1275863002/diff/1/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/1275863002/diff/1/Source/platform/heap/ThreadState.cpp#newcode1551 Source/platform/heap/ThreadState.cpp:1551: if (!ThreadState::current()->isMainThread()) On 2015/08/06 10:59:01, sof wrote: > On ...
5 years, 4 months ago (2015-08-06 11:01:19 UTC) #8
sof
https://codereview.chromium.org/1275863002/diff/1/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/1275863002/diff/1/Source/platform/heap/ThreadState.cpp#newcode1551 Source/platform/heap/ThreadState.cpp:1551: if (!ThreadState::current()->isMainThread()) On 2015/08/06 11:01:19, haraken wrote: > On ...
5 years, 4 months ago (2015-08-06 12:21:15 UTC) #9
haraken
On 2015/08/06 12:21:15, sof wrote: > https://codereview.chromium.org/1275863002/diff/1/Source/platform/heap/ThreadState.cpp > File Source/platform/heap/ThreadState.cpp (right): > > https://codereview.chromium.org/1275863002/diff/1/Source/platform/heap/ThreadState.cpp#newcode1551 > ...
5 years, 4 months ago (2015-08-06 13:49:32 UTC) #10
sof
On 2015/08/06 13:49:32, haraken wrote: > On 2015/08/06 12:21:15, sof wrote: > > > https://codereview.chromium.org/1275863002/diff/1/Source/platform/heap/ThreadState.cpp ...
5 years, 4 months ago (2015-08-06 21:05:48 UTC) #11
haraken
Still LGTM
5 years, 4 months ago (2015-08-06 23:15:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1275863002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1275863002/120001
5 years, 4 months ago (2015-08-07 12:27:53 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://src.chromium.org/viewvc/blink?view=rev&revision=200163
5 years, 4 months ago (2015-08-07 13:14:33 UTC) #16
hiroshige
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/1280543004/ by hiroshige@chromium.org. ...
5 years, 4 months ago (2015-08-07 14:23:00 UTC) #17
sof
added missing #include + confirmed that this fixes compilation on the failing linux_chromium_asan_rel_ng bot. Relanding.
5 years, 4 months ago (2015-08-07 15:07:22 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1275863002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1275863002/140001
5 years, 4 months ago (2015-08-07 15:07:35 UTC) #21
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://src.chromium.org/viewvc/blink?view=rev&revision=200174
5 years, 4 months ago (2015-08-07 15:31:31 UTC) #22
Justin Novosad
5 years, 4 months ago (2015-08-07 21:00:59 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/1272573008/ by junov@chromium.org.

The reason for reverting is: Multiple failures on Win Oilpan Debug bot:
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Win%20Oilpan%20....

Powered by Google App Engine
This is Rietveld 408576698