ireps generated by top codegen are not registered to pic->irep. get them
marked manually.
This commit is contained in:
parent
42c097a91f
commit
0db09b146c
3
src/gc.c
3
src/gc.c
|
@ -326,6 +326,9 @@ gc_mark_object(pic_state *pic, struct pic_object *obj)
|
||||||
if (proc->env) {
|
if (proc->env) {
|
||||||
gc_mark_object(pic, (struct pic_object *)proc->env);
|
gc_mark_object(pic, (struct pic_object *)proc->env);
|
||||||
}
|
}
|
||||||
|
if (! proc->cfunc_p) {
|
||||||
|
gc_mark_object(pic, (struct pic_object *)proc->u.irep);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PIC_TT_PORT: {
|
case PIC_TT_PORT: {
|
||||||
|
|
Loading…
Reference in New Issue