Bug 970645 - Fix Mochitest-BC leak finder to use a shrinking instead of non-shrinking gc. r=mccr8

This commit is contained in:
Jan de Mooij 2014-02-11 11:07:24 +01:00
parent 80cc737413
commit b34759b4b2

View File

@ -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 = [];