From a8e3576e7c25f8f1caa942a15e749055c8f0a2f8 Mon Sep 17 00:00:00 2001 From: Paul Bone Date: Wed, 17 Apr 2019 00:15:47 +0000 Subject: [PATCH] Bug 1544648 - Add remaining GC parameters r=jonco Differential Revision: https://phabricator.services.mozilla.com/D27643 --HG-- extra : moz-landing-system : lando --- js/src/builtin/TestingFunctions.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/js/src/builtin/TestingFunctions.cpp b/js/src/builtin/TestingFunctions.cpp index ff50b0249fc6..f65497fe06ee 100644 --- a/js/src/builtin/TestingFunctions.cpp +++ b/js/src/builtin/TestingFunctions.cpp @@ -486,10 +486,19 @@ static bool MinorGC(JSContext* cx, unsigned argc, Value* vp) { _("dynamicHeapGrowth", JSGC_DYNAMIC_HEAP_GROWTH, true) \ _("dynamicMarkSlice", JSGC_DYNAMIC_MARK_SLICE, true) \ _("allocationThreshold", JSGC_ALLOCATION_THRESHOLD, true) \ + _("allocationThresholdFactor", JSGC_ALLOCATION_THRESHOLD_FACTOR, true) \ + _("allocationThresholdFactorAvoidInterrupt", \ + JSGC_ALLOCATION_THRESHOLD_FACTOR_AVOID_INTERRUPT, true) \ _("minEmptyChunkCount", JSGC_MIN_EMPTY_CHUNK_COUNT, true) \ _("maxEmptyChunkCount", JSGC_MAX_EMPTY_CHUNK_COUNT, true) \ _("compactingEnabled", JSGC_COMPACTING_ENABLED, true) \ - _("minLastDitchGCPeriod", JSGC_MIN_LAST_DITCH_GC_PERIOD, true) + _("minLastDitchGCPeriod", JSGC_MIN_LAST_DITCH_GC_PERIOD, true) \ + _("nurseryFreeThresholdForIdleCollection", \ + JSGC_NURSERY_FREE_THRESHOLD_FOR_IDLE_COLLECTION, true) \ + _("nurseryFreeThresholdForIdleCollectionPercent", \ + JSGC_NURSERY_FREE_THRESHOLD_FOR_IDLE_COLLECTION_PERCENT, true) \ + _("pretenureThreshold", JSGC_PRETENURE_THRESHOLD, true) \ + _("pretenureGroupThreshold", JSGC_PRETENURE_GROUP_THRESHOLD, true) static const struct ParamInfo { const char* name;