]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix structrelease instructions
authorfennecdjay <fennecdjay@gmail.com>
Sun, 8 Jan 2023 13:35:03 +0000 (14:35 +0100)
committerfennecdjay <fennecdjay@gmail.com>
Sun, 8 Jan 2023 13:35:03 +0000 (14:35 +0100)
src/vm/vm.c

index 0df19eff37e453f4c51be52f817e83882d78801c..4433b4131bfd15621501579dcaea20ff77cef07a 100644 (file)
@@ -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                                       *