Browse Source

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

florian 8 months ago
parent
commit
cc7325e316
1 changed files with 2 additions and 0 deletions
  1. 2 0
      rtl/inc/system.inc

+ 2 - 0
rtl/inc/system.inc

@@ -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}