Bug 1093064 - Increase number of GC iterations r=ttung,janv

Differential Revision: https://phabricator.services.mozilla.com/D40183

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Simon Giesecke 2019-08-08 07:55:18 +00:00
parent b054443d47
commit 1687faeee5
2 changed files with 3 additions and 3 deletions

View File

@ -633,7 +633,7 @@ var SpecialPowers = {
clearUserPref(prefName) {
Services.prefs.clearUserPref(prefName);
},
// Copied (and slightly adjusted) from specialpowersAPI.js
// Copied (and slightly adjusted) from testing/specialpowers/content/SpecialPowersAPI.jsm
exactGC(callback) {
let count = 0;
@ -641,7 +641,7 @@ var SpecialPowers = {
function scheduledGCCallback() {
Cu.forceCC();
if (++count < 2) {
if (++count < 3) {
doPreciseGCandCC();
} else {
callback();

View File

@ -1227,7 +1227,7 @@ class SpecialPowersAPI extends JSWindowActorChild {
function genGCCallback(cb) {
return function() {
Cu.forceCC();
if (++count < 2) {
if (++count < 3) {
Cu.schedulePreciseGC(genGCCallback(cb));
} else if (cb) {
cb();