0ad/source/scriptinterface
Lancelot de Ferrière 655a444847
Always allow last-ditch GCs
As noted on #7979, we run into OOMs since commit af32d386b9. The reason is that the default incremental GC budget is unlimited, which actually doesn't perform incremental GCs. Our settings can lead to situation where the incremental GCs don't actually sweep, thus not freeing memory.
SM has a mechanism to avoid OOM anyways with LAST_DITCH GCs, but by default these can only occur ever 30 seconds. Turn this off.

Reported by: langbart

(cherry picked from commit e3e542b1f9)
Signed-off-by: Itms <itms@wildfiregames.com>
2025-06-19 16:58:32 +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 Skip redundant HasProperty in GetObjectClassName 2025-05-15 13:59:21 +02: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 Always allow last-ditch GCs 2025-06-19 16:58:32 +02:00
ScriptContext.h Stop running shrinking gcs & simplify GC logic. 2025-05-15 13:49:41 +02: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