summaryrefslogtreecommitdiff
path: root/src/lj_gc.c
diff options
context:
space:
mode:
authorMike Pall <mike>2010-02-08 05:29:47 +0100
committerMike Pall <mike>2010-02-08 05:29:47 +0100
commitf275a9d7ef1a47c30cbb9c70897914d633dff14c (patch)
treed0ca90013142a0e3b4ac486c2923057bdfc7f0cf /src/lj_gc.c
parent4424027844bdcdb76e90e0994efafeee7ea5cc1f (diff)
downloadluajit-f275a9d7ef1a47c30cbb9c70897914d633dff14c.tar.gz
luajit-f275a9d7ef1a47c30cbb9c70897914d633dff14c.tar.bz2
luajit-f275a9d7ef1a47c30cbb9c70897914d633dff14c.zip
Redesign of prototype generation, part 4: late creation of prototype.
Diffstat (limited to 'src/lj_gc.c')
-rw-r--r--src/lj_gc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lj_gc.c b/src/lj_gc.c
index 5750d0ef..bcef576b 100644
--- a/src/lj_gc.c
+++ b/src/lj_gc.c
@@ -251,8 +251,7 @@ static void gc_traverse_proto(global_State *g, GCproto *pt)
251 } 251 }
252#endif 252#endif
253 /* GC during prototype creation could cause NULL fields. */ 253 /* GC during prototype creation could cause NULL fields. */
254 if (gcref(pt->chunkname)) 254 gc_mark_str(proto_chunkname(pt));
255 gc_mark_str(proto_chunkname(pt));
256 for (i = -(ptrdiff_t)pt->sizekgc; i < 0; i++) /* Mark collectable consts. */ 255 for (i = -(ptrdiff_t)pt->sizekgc; i < 0; i++) /* Mark collectable consts. */
257 gc_markobj(g, proto_kgc(pt, i)); 256 gc_markobj(g, proto_kgc(pt, i));
258 for (i = 0; i < (ptrdiff_t)pt->sizeuvname; i++) /* Mark upvalue names. */ 257 for (i = 0; i < (ptrdiff_t)pt->sizeuvname; i++) /* Mark upvalue names. */