diff --git a/js/public/GCAPI.h b/js/public/GCAPI.h index f1d3d5c4cbc9..7f960dafb81b 100644 --- a/js/public/GCAPI.h +++ b/js/public/GCAPI.h @@ -401,7 +401,7 @@ typedef enum JSGCParamKey { * JS::RunIdleTimeGCTask will collect the nursery if it hasn't been collected * in this many milliseconds. * - * Default: 2000 + * Default: 5000 * Pref: None */ JSGC_NURSERY_TIMEOUT_FOR_IDLE_COLLECTION_MS = 46, diff --git a/js/src/gc/Scheduling.h b/js/src/gc/Scheduling.h index f6b6ac22ee6f..aba12cbe0d83 100644 --- a/js/src/gc/Scheduling.h +++ b/js/src/gc/Scheduling.h @@ -414,7 +414,7 @@ static const double NurseryFreeThresholdForIdleCollectionFraction = 0.25; /* JSGC_NURSERY_TIMEOUT_FOR_IDLE_COLLECTION_MS */ static const TimeDuration NurseryTimeoutForIdleCollection = - TimeDuration::FromSeconds(2.0); + TimeDuration::FromSeconds(5.0); /* JSGC_PRETENURE_THRESHOLD */ static const double PretenureThreshold = 0.6;