|
@@ -129,7 +129,6 @@ end;
|
|
function tlinkerwasi.MakeExecutable:boolean;
|
|
function tlinkerwasi.MakeExecutable:boolean;
|
|
const
|
|
const
|
|
PageSize = 65536;
|
|
PageSize = 65536;
|
|
- DefaultMaxMemoryForThreads = 33554432;
|
|
|
|
var
|
|
var
|
|
GCSectionsStr : ansistring;
|
|
GCSectionsStr : ansistring;
|
|
binstr, cmdstr : Tcmdstr;
|
|
binstr, cmdstr : Tcmdstr;
|
|
@@ -179,8 +178,6 @@ begin
|
|
if ts_wasm_threads in current_settings.targetswitches then
|
|
if ts_wasm_threads in current_settings.targetswitches then
|
|
begin
|
|
begin
|
|
cmdstr := cmdstr + ' --import-memory --shared-memory --global-base=1024';
|
|
cmdstr := cmdstr + ' --import-memory --shared-memory --global-base=1024';
|
|
- if maxmem<=0 then
|
|
|
|
- maxmem:=align(DefaultMaxMemoryForThreads,PageSize);
|
|
|
|
end;
|
|
end;
|
|
|
|
|
|
if initialmem>0 then
|
|
if initialmem>0 then
|