Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 21ae79c

Browse files
committed
Bug 1790336 - Part 2: Increase balanced heap growth factor r=sfink
Increasing this parameter gives us parity on our benchmarks in the testing I've done so far. Differential Revision: https://phabricator.services.mozilla.com/D157095
1 parent e8085c0 commit 21ae79c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

js/src/gc/Scheduling.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ static const double HighFrequencyLargeHeapGrowth = 1.5;
387387
static const double LowFrequencyHeapGrowth = 1.5;
388388

389389
/* JSGC_HEAP_GROWTH_FACTOR */
390-
static const double HeapGrowthFactor = 40.0;
390+
static const double HeapGrowthFactor = 50.0;
391391

392392
/* JSGC_MIN_EMPTY_CHUNK_COUNT */
393393
static const uint32_t MinEmptyChunkCount = 1;

modules/libpref/init/all.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ pref("javascript.options.mem.gc_low_frequency_heap_growth", 150);
10441044
pref("javascript.options.mem.gc_balanced_heap_limits", false);
10451045

10461046
// JSGC_HEAP_GROWTH_FACTOR
1047-
pref("javascript.options.mem.gc_heap_growth_factor", 40);
1047+
pref("javascript.options.mem.gc_heap_growth_factor", 50);
10481048

10491049
// JSGC_ALLOCATION_THRESHOLD
10501050
pref("javascript.options.mem.gc_allocation_threshold_mb", 27);

0 commit comments

Comments
 (0)