mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
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:
parent
b054443d47
commit
1687faeee5
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user