Redesign of prototype generation, part 4: late creation of prototype.
This commit is contained in:
@@ -251,8 +251,7 @@ static void gc_traverse_proto(global_State *g, GCproto *pt)
|
||||
}
|
||||
#endif
|
||||
/* GC during prototype creation could cause NULL fields. */
|
||||
if (gcref(pt->chunkname))
|
||||
gc_mark_str(proto_chunkname(pt));
|
||||
gc_mark_str(proto_chunkname(pt));
|
||||
for (i = -(ptrdiff_t)pt->sizekgc; i < 0; i++) /* Mark collectable consts. */
|
||||
gc_markobj(g, proto_kgc(pt, i));
|
||||
for (i = 0; i < (ptrdiff_t)pt->sizeuvname; i++) /* Mark upvalue names. */
|
||||
|
||||
Reference in New Issue
Block a user