bugfix: forgot to remove pic->cp

This commit is contained in:
Yuichi Nishiwaki 2017-04-01 15:43:38 +09:00
parent 690384c5b4
commit 7d47d56b9c
2 changed files with 0 additions and 6 deletions

View File

@ -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);

View File

@ -36,7 +36,6 @@ struct pic_state {
pic_allocf allocf;
void *userdata;
struct checkpoint *cp;
struct cont *cc;
pic_value *sp;