diff --git a/native/Loader/Loader.c b/native/Loader/Loader.c index 03dc645..396d25c 100644 --- a/native/Loader/Loader.c +++ b/native/Loader/Loader.c @@ -37,11 +37,12 @@ #define STAGING_SUBDIR ".engine_loads" // Hot reloads one client takes before it refuses the rest (until it restarts). The engine // says the real number (engine.json MaxHotReloads, RynthCoreMaxHotReloads export); this is -// for an engine without the export. After 4+ reloads in one process, clients died with -// CoreCLR fatal error 0x80131506 at coreclr+0x256E19 (2026-10-08..10, gens 5-6 or the 4th -// reload itself) although every generation unloaded and address space stayed flat: treated -// as a CoreCLR limit on repeated collectible loads, so the loader stops short of it. -#define DEFAULT_MAX_HOT_RELOADS 3 +// for an engine without the export. 3 from 2026-10-11, after clients died with CoreCLR fatal +// error 0x80131506 at coreclr+0x256E19 after 4+ reloads in one process (2026-10-08..10). The +// 10-15 dump triage put those on the v1 SehTrampoline crash logger (ReversePInvokeBadTransition, +// fixed by db645ba on 10-12), not on reloading: none since, and address space was healthy at +// every crash. So 20 since 2026-10-15: a backstop, not a known CoreCLR limit. +#define DEFAULT_MAX_HOT_RELOADS 20 // CoreCLR's own crash dump (createdump.exe, DOTNET_DbgEnableMiniDump): clr__