* increase stack margin for x86-64 so back tracing a stack overfow with line info does not cause another stack overflow

This commit is contained in:
florian 2024-11-24 22:58:47 +01:00
parent e03e62f013
commit cc7325e316

View File

@ -50,6 +50,8 @@ const
STACK_MARGIN_MAX = 64; { Stack size margin for stack checking }
{$elseif defined(CPULOONGARCH64)}
STACK_MARGIN_MAX = 65536; { Stack size margin for stack checking }
{$elseif defined(CPUX86_64)}
STACK_MARGIN_MAX = 32768; { Stack size margin for stack checking }
{$else}
STACK_MARGIN_MAX = 16384; { Stack size margin for stack checking }
{$endif}