Skip to content

Commit

Permalink
Try not running finalizer if there was a thunk
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Nov 3, 2021
1 parent 7917743 commit 6fcedf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/callstack.c
Expand Up @@ -732,7 +732,7 @@ MVMFrame * MVM_callstack_unwind_frame(MVMThreadContext *tc, MVMuint8 exceptional
MVM_panic(1, "Unknown call stack record type in unwind");
}
} while (tc->stack_top && !is_bytecode_frame(tc->stack_top->kind));
if (tc->num_finalizing && !exceptional && MVM_gc_finalize_run_handler(tc))
if (tc->num_finalizing && !exceptional && (!thunked || !*thunked) && MVM_gc_finalize_run_handler(tc))
*thunked = 1;
return tc->stack_top ? MVM_callstack_record_to_frame(tc->stack_top) : NULL;
}
Expand Down

0 comments on commit 6fcedf7

Please sign in to comment.