Skip to content

Commit

Permalink
gc: fix ms2 crash with stress/gc.1
Browse files Browse the repository at this point in the history
Fixes #1143
  • Loading branch information
Reini Urban committed Nov 21, 2014
1 parent 6e93e5c commit c4d9f20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gc/gc_ms2.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,9 +806,10 @@ gc_ms2_mark_pmc_header(PARROT_INTERP, ARGMOD(PMC *pmc))

if (!PObj_constant_TEST(pmc)) {
Parrot_pa_remove(interp, self->objects, item->ptr);
if (!self->new_objects)
self->new_objects = Parrot_pa_new(interp);
item->ptr = Parrot_pa_insert(self->new_objects, item);
}

}


Expand Down

0 comments on commit c4d9f20

Please sign in to comment.