Skip to content

Commit

Permalink
Erm. Remove object from original list before promoting into new one.
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed Feb 1, 2011
1 parent 25857f3 commit 1b24ec7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gc/gc_gms.c
Expand Up @@ -930,8 +930,10 @@ gc_gms_sweep_pools(PARROT_INTERP,
if (PObj_live_TEST(pmc)) {
PObj_live_CLEAR(pmc);

if (move_to_old)
if (move_to_old) {
Parrot_pa_remove(interp, self->objects[i], item);
item->ptr = Parrot_pa_insert(interp, self->objects[i + 1], item);
}
}
else if (!PObj_constant_TEST(pmc)) {
Parrot_pa_remove(interp, self->objects[i], PMC2PAC(pmc)->ptr);
Expand Down

0 comments on commit 1b24ec7

Please sign in to comment.