mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-18 11:49:14 +02:00
* WebAssembly threads: disable stack checking for the FPCWasmThreadStartPascal procedure
This commit is contained in:
parent
9d771396ff
commit
9e0b2869a3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user