Skip to content

Commit

Permalink
Clear cur_args_callsite when adapting legacy args
Browse files Browse the repository at this point in the history
Otherwise we will try to GC mark the args buffer according to the legacy
layout.
  • Loading branch information
jnthn committed Jul 2, 2021
1 parent 4176a7f commit d2d2628
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/6model/reprs/MVMCFunction.c
Expand Up @@ -33,6 +33,7 @@ static void invoke_handler(MVMThreadContext *tc, MVMObject *invokee, MVMCallsite
if (IS_CONCRETE(invokee)) {
MVMArgs arg_info;
MVM_gc_allocate_gen2_default_set(tc);
tc->cur_frame->cur_args_callsite = NULL;
adapt_legacy_args(tc, &callsite, &args);
arg_info.callsite = callsite;
arg_info.source = args;
Expand Down

0 comments on commit d2d2628

Please sign in to comment.