0ad/source/scriptinterface
Dunedan ef9ea478ec
Add workaround to turn off nursery size heuristic
SpiderMonkey 98 introduced a size heuristic for the nursery GC region
(https://phabricator.services.mozilla.com/D136637). As this heuristic
uses a wall-clock time duration, it results in a severe performance
regression on slower systems for our use case.

This commit adds a workaround to turn off that heuristic, by telling
SpiderMonkey that a "page load" (something which doesn't have a meaning
in the context of pyrogenesis) is in progress, as that heuristic is
disabled for page loads.

Co-Authored by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
Fixes #7714

(cherry picked from commit 11dd480b67)
Signed-off-by: Itms <itms@wildfiregames.com>
2025-05-01 08:56:53 +02:00
..
tests Refactor freezing of JS objects 2024-12-05 17:49:16 +01:00
FunctionWrapper.h Allow to use a generator as MapGenerator 2024-05-22 15:52:12 +00:00
JSON.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
JSON.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Object.h Adapt 0 A.D. to SpiderMonkey ESR 102 2024-12-09 10:43:35 +01:00
Promises.cpp Add final to classes introduced in f9114a87f2 2024-08-25 13:38:09 +02:00
Promises.h Upgrade SpiderMonkey to ESR 115 2024-12-09 10:46:12 +01:00
ScriptContext.cpp Add workaround to turn off nursery size heuristic 2025-05-01 08:56:53 +02:00
ScriptContext.h Get a promise when starting a GUIpage 2024-07-08 19:07:04 +00:00
ScriptConversions.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ScriptConversions.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ScriptEngine.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ScriptExceptions.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ScriptExceptions.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ScriptExtraHeaders.h Upgrade SpiderMonkey to ESR 115 2024-12-09 10:46:12 +01:00
ScriptForward.h Upgrade SpiderMonkey to ESR 115 2024-12-09 10:46:12 +01:00
ScriptInterface.cpp Upgrade SpiderMonkey to ESR 115 2024-12-09 10:46:12 +01:00
ScriptInterface.h Adapt 0 A.D. to SpiderMonkey ESR 102 2024-12-09 10:43:35 +01:00
ScriptRequest.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ScriptStats.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ScriptStats.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ScriptTypes.h Remove check for SpiderMonkey minor version 2024-12-09 10:46:14 +01:00
StructuredClone.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
StructuredClone.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00