Skip to content

Commit

Permalink
gc_root type
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Nov 16, 2013
1 parent 98a32f0 commit 54ebe1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/args.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ MVMObject * MVM_args_slurpy_positional(MVMThreadContext *tc, MVMArgProcContext *
MVM_exception_throw_adhoc(tc, "Missing hll slurpy array type");
}

MVM_gc_root_temp_push(tc, (MVMCollectable **)&type);
result = REPR(type)->allocate(tc, STABLE(type));
MVM_gc_root_temp_push(tc, (MVMCollectable **)&result);
if (REPR(result)->initialize)
Expand Down Expand Up @@ -440,7 +441,7 @@ MVMObject * MVM_args_slurpy_positional(MVMThreadContext *tc, MVMArgProcContext *
if (pos == 1) break; /* overflow?! */
}

MVM_gc_root_temp_pop_n(tc, 2);
MVM_gc_root_temp_pop_n(tc, 3);

return result;
}
Expand Down

0 comments on commit 54ebe1d

Please sign in to comment.