From 03c56728d929d5201e3de9307252b8b9b7886747 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Fri, 20 Sep 2024 16:46:07 +0200 Subject: [PATCH] [Pale-Moon] Issue #1972 - Disable forcing GC on memory pressure. --- application/palemoon/app/profile/palemoon.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/palemoon/app/profile/palemoon.js b/application/palemoon/app/profile/palemoon.js index 0aba8f1074..dcad2d0509 100644 --- a/application/palemoon/app/profile/palemoon.js +++ b/application/palemoon/app/profile/palemoon.js @@ -503,6 +503,9 @@ pref("general.warnOnAboutConfig", false); // Enable unlinking of ghost windows so they can be garbage collected. pref("browser.ghostbuster.enabled", true); +// Disable GC on memory pressure, avoid incessant recycling when websites +// misbehave. Should also avoid spurious GCs during ghostbusting. +pref("javascript.options.gc_on_memory_pressure", false); // This is the pref to control the location bar, change this to true to // force this - this makes the origin of popup windows more obvious to avoid