DescriptionSplit up leak detector into two stages for better leak reporting.
The leak detector clears out resources along with issuing a sequence of GCs
before taking object census. It then counting up resources that are left and
reporting these as leaking.
With Oilpan enabled, RenderViewTest needs to carefully orchestrate its shutdown
to reliably not report the frame(s) attached to the view as leaking. (With Oilpan
enabled, frames will delayed'ly release resources upon frame close()ing requiring
a follow-on GC to clear out those resources.)
Accommodate that by splitting out the leak detector into two -- with RenderViewTest
injecting the clearing of its view in between those.
R=haraken, jochen, hajimehoshi
BUG=561293
Committed: https://crrev.com/e6c4efc01a4e1d50713542460d69d64ae5e76094
Cr-Commit-Position: refs/heads/master@{#361638}
Patch Set 1 #Patch Set 2 : delay final leak detector GCs until ready #Patch Set 3 : test with enable_oilpan=1 #Patch Set 4 : restore enable_oilpan=0 default #
Total comments: 5
Patch Set 5 : rephrase WebLeakDetector as two-phased #
Total comments: 2
Patch Set 6 : retire collectGarbageAndGetDOMCounts() #Patch Set 7 : call clearScriptRegexpContext() in prepareForLeakDetection() #
Messages
Total messages: 28 (8 generated)
|