From 6d59bf19ea9cdc85ecd22d420d05829905f208f3 Mon Sep 17 00:00:00 2001 From: Jon Coppeard Date: Wed, 24 Feb 2021 15:14:15 +0000 Subject: [PATCH] Bug 1689394 - Increase idle time nursery collection timeout to make it less agressive r=sfink Differential Revision: https://phabricator.services.mozilla.com/D106127 --- js/public/GCAPI.h | 2 +- js/src/gc/Scheduling.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;