mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Bug 970645 - Fix Mochitest-BC leak finder to use a shrinking instead of non-shrinking gc. r=mccr8
This commit is contained in:
parent
80cc737413
commit
b34759b4b2
@ -432,10 +432,12 @@ Tester.prototype = {
|
||||
}
|
||||
|
||||
// Schedule GC and CC runs before finishing in order to detect
|
||||
// DOM windows leaked by our tests or the tested code.
|
||||
// DOM windows leaked by our tests or the tested code. Note that we
|
||||
// use a shrinking GC so that the JS engine will discard JIT code and
|
||||
// JIT caches more aggressively.
|
||||
|
||||
let checkForLeakedGlobalWindows = aCallback => {
|
||||
Cu.schedulePreciseGC(() => {
|
||||
Cu.schedulePreciseShrinkingGC(() => {
|
||||
let analyzer = new CCAnalyzer();
|
||||
analyzer.run(() => {
|
||||
let results = [];
|
||||
|
Loading…
Reference in New Issue
Block a user