protoverse

A metaverse protocol
git clone git://jb55.com/protoverse
Log | Files | Refs | README | LICENSE

commit bafa35f1439bcde7dbb65aed22238029ff22dbcb
parent c1014fcf09349c3ee1736bda913682c403232283
Author: William Casarin <jb55@jb55.com>
Date:   Wed,  4 Aug 2021 10:11:00 -0700

increase stack size for locals

Diffstat:
Msrc/wasm.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wasm.c b/src/wasm.c @@ -6758,7 +6758,7 @@ int wasm_interp_init(struct wasm_interp *interp, struct module *module) num_elements = count_element_insts(module); elems_size = num_elements * sizeof(struct elem_inst); - locals_size = sizeof(struct val) * 2048; + locals_size = 1024 * 1024 * 5; // 5MB stack? tables_size = calculate_tables_size(module); if (num_mems > 1) {