Skip to content

Commit

Permalink
jsc/wasm32/wasm32.jsc: parametrize default sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
pipcet committed Feb 4, 2021
1 parent 0f6b026 commit e088640
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions jsc/wasm32/wasm32.jsc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#{#define _GNU_SOURCE}
#{#include "js3.h"}
#{#include "thinthin.h"}
#{#include "zeropage.h"}
#{#include <dirent.h>}
#{#include <errno.h>}
Expand Down Expand Up @@ -976,10 +977,10 @@ function Wasm32Thread(kport, process, threadpage, vm)
system.threads.push(this);

var sizes = {
tablesize: 65536,
memsize: 512 * 1024 * 1024,
stacksize: 1 * 1024 * 1024,
stackbottom: 511 * 1024 * 1024,
tablesize: %{default_sizes.tablesize},
memsize: %{default_sizes.memsize},
stacksize: %{default_sizes.stacksize},
stackbottom: %{default_sizes.stackbottom},
};
vm ||= new Wasm32VM(sizes);

Expand Down

0 comments on commit e088640

Please sign in to comment.