Skip to content

Commit

Permalink
explode when gc-marking CallCapture past args array
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Oct 17, 2016
1 parent 7c4db84 commit 2208599
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/6model/reprs/MVMCallCapture.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ static void gc_mark(MVMThreadContext *tc, MVMSTable *st, void *data, MVMGCWorkli
MVM_gc_worklist_add(tc, worklist, &ctx->args[i].s);
i++;
}
if (flag >= ctx->callsite->flag_count) {
MVM_panic(1, "oh, oops, accessing past flag buffer\n");
}
if (flag_map[flag] & MVM_CALLSITE_ARG_STR || flag_map[flag] & MVM_CALLSITE_ARG_OBJ)
MVM_gc_worklist_add(tc, worklist, &ctx->args[i].o);
}
Expand Down

0 comments on commit 2208599

Please sign in to comment.