* WebAssembly threads: disable stack checking for the FPCWasmThreadStartPascal procedure

This commit is contained in:
Nikolay Nikolov 2024-08-06 07:07:41 +03:00
parent 9d771396ff
commit 9e0b2869a3

View File

@ -322,6 +322,7 @@ procedure WasiAllocateThreadVars; forward;
// Result:=tthreadfunc(RunFunction)(args);
//end;
{$push}{$S-} // no stack checking for this procedure
procedure FPCWasmThreadStartPascal(tid: longint; start_arg: PWasmThread);
begin
{$IFDEF DEBUGWASMTHREADS}DebugWriteln('FPCWasmThreadStartPascal(...)');{$ENDIF}
@ -344,6 +345,7 @@ begin
{$IFDEF DEBUGWASMTHREADS}DebugWriteln('FPCWasmThreadStartPascal: Signaling end of thread');{$ENDIF}
WasiRTLEventSetEvent(start_arg^.DoneEvent);
end;
{$pop}
procedure wasi_thread_start(tid: longint; start_arg: PWasmThread); assembler; nostackframe;
asm