From: fennecdjay Date: Sun, 8 Jan 2023 13:35:03 +0000 (+0100) Subject: :bug: Fix structrelease instructions X-Git-Tag: nightly~207^2~21 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=5110db1d46bd63ea91f12fd7c7fecb8aa1f503f2;p=gwion.git :bug: Fix structrelease instructions --- diff --git a/src/vm/vm.c b/src/vm/vm.c index 0df19eff..4433b413 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -912,11 +912,6 @@ vm_prepare(const VM *vm, m_bit *prepare_code) { // lgtm [cpp/use-of-goto] DISPATCH(); setcode: a.code = *(VM_Code *)(reg - SZ_INT); -if(a.code->wait) { -handle(shred, "FuncWithGlobalUninit"); -break; -} - if (!a.code->builtin) { register const uint push = *(m_uint *)reg /*+ code->stack_depth*/ + sizeof(frame_t); @@ -1093,8 +1088,10 @@ break; DISPATCH() structreleaseregaddr: struct_release(shred, (Type)VAL2, *(m_bit**)(reg + IVAL)); + DISPATCH(); structreleasemem: struct_release(shred, (Type)VAL2, mem + IVAL); + DISPATCH(); except: /* TODO: Refactor except instruction * * so that *