gc must mark macros as well
This commit is contained in:
parent
8007baf011
commit
77b6b94e74
5
src/gc.c
5
src/gc.c
|
@ -239,6 +239,11 @@ gc_mark_phase(pic_state *pic)
|
||||||
gc_mark(pic, pic->globals[i]);
|
gc_mark(pic, pic->globals[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* macros */
|
||||||
|
for (i = 0; i < pic->mlen; ++i) {
|
||||||
|
gc_mark_object(pic, (struct pic_object *)pic->macros[i]);
|
||||||
|
}
|
||||||
|
|
||||||
/* pool */
|
/* pool */
|
||||||
for (i = 0; i < pic->plen; ++i) {
|
for (i = 0; i < pic->plen; ++i) {
|
||||||
gc_mark(pic, pic->pool[i]);
|
gc_mark(pic, pic->pool[i]);
|
||||||
|
|
Loading…
Reference in New Issue