diff options
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 2.225 2017/04/24 16:59:26 roberto Exp $ | 2 | ** $Id: lgc.c,v 2.226 2017/04/24 17:52:18 roberto Exp roberto $ |
3 | ** Garbage Collector | 3 | ** Garbage Collector |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -485,6 +485,7 @@ static int traverseproto (global_State *g, Proto *f) { | |||
485 | int i; | 485 | int i; |
486 | if (f->cache && iswhite(f->cache)) | 486 | if (f->cache && iswhite(f->cache)) |
487 | f->cache = NULL; /* allow cache to be collected */ | 487 | f->cache = NULL; /* allow cache to be collected */ |
488 | f->cachemiss = 0; /* restart counting */ | ||
488 | markobjectN(g, f->source); | 489 | markobjectN(g, f->source); |
489 | for (i = 0; i < f->sizek; i++) /* mark literals */ | 490 | for (i = 0; i < f->sizek; i++) /* mark literals */ |
490 | markvalue(g, &f->k[i]); | 491 | markvalue(g, &f->k[i]); |