From 9319e88a471903745ba6aafdd4b514fa269f1f7e Mon Sep 17 00:00:00 2001 From: nathan Date: Sat, 28 Jun 2025 15:51:59 -0600 Subject: first commit --- palemoon/patches/set-max-stack-size.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 palemoon/patches/set-max-stack-size.patch (limited to 'palemoon/patches/set-max-stack-size.patch') diff --git a/palemoon/patches/set-max-stack-size.patch b/palemoon/patches/set-max-stack-size.patch new file mode 100644 index 0000000..40c40ea --- /dev/null +++ b/palemoon/patches/set-max-stack-size.patch @@ -0,0 +1,15 @@ +set max stack size to 2MB, +see https://repo.palemoon.org/MoonchildProductions/UXP/commit/00f22ddbe62f9ab4cf314b1beb18b7f9a91edae2 +diff --git a/platform/js/xpconnect/src/XPCJSContext.cpp b/platform/js/xpconnect/src/XPCJSContext.cpp +index 9d11356e27..9b06c94fbc 100644 +--- a/platform/js/xpconnect/src/XPCJSContext.cpp ++++ b/platform/js/xpconnect/src/XPCJSContext.cpp +@@ -3231,7 +3231,7 @@ XPCJSContext::Initialize() + // Most Linux distributions set default stack size to 8MB. Use it as the + // maximum value. + // Solaris uses 8 or 10 MB, depending, so this is a safe max there too. +- const size_t kStackQuotaMax = 8 * 1024 * 1024; ++ const size_t kStackQuotaMax = 2 * 1024 * 1024; + #if defined(MOZ_ASAN) || defined(DEBUG) + // Bug 803182: account for the 4x difference in the size of js::Interpret + // between optimized and debug builds. We use 2x since the JIT part -- cgit v1.2.3