bugfix: forgot to remove pic->cp
This commit is contained in:
parent
690384c5b4
commit
7d47d56b9c
5
lib/gc.c
5
lib/gc.c
|
@ -455,11 +455,6 @@ gc_mark_phase(pic_state *pic)
|
|||
|
||||
assert(pic->heap->weaks == NULL);
|
||||
|
||||
/* checkpoint */
|
||||
if (pic->cp) {
|
||||
gc_mark_object(pic, (struct object *)pic->cp);
|
||||
}
|
||||
|
||||
/* stack */
|
||||
for (stack = pic->stbase; stack != pic->sp; ++stack) {
|
||||
gc_mark(pic, *stack);
|
||||
|
|
|
@ -36,7 +36,6 @@ struct pic_state {
|
|||
pic_allocf allocf;
|
||||
void *userdata;
|
||||
|
||||
struct checkpoint *cp;
|
||||
struct cont *cc;
|
||||
|
||||
pic_value *sp;
|
||||
|
|
Loading…
Reference in New Issue