From d8cd769cf088245b26789ffcda76a768827468f3 Mon Sep 17 00:00:00 2001 From: Job Bautista Date: Sat, 1 Apr 2023 10:42:03 +0800 Subject: [PATCH] Issue #2184 - Increase mozjemalloc page cache size from 1 MiB to 16 MiB. We don't need the reduced memory overhead as we are not using e10s. This should speed up JS by a point according to Speedometer 2.1. --- memory/mozjemalloc/jemalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memory/mozjemalloc/jemalloc.c b/memory/mozjemalloc/jemalloc.c index 5e50d65f81..2adec68485 100644 --- a/memory/mozjemalloc/jemalloc.c +++ b/memory/mozjemalloc/jemalloc.c @@ -401,7 +401,7 @@ void *_mmap(void *addr, size_t length, int prot, int flags, */ #define CHUNK_2POW_DEFAULT 20 /* Maximum number of dirty pages per arena. */ -#define DIRTY_MAX_DEFAULT (1U << 8) +#define DIRTY_MAX_DEFAULT (1U << 12) /* * Maximum size of L1 cache line. This is used to avoid cache line aliasing,