barrier for prototype's cache (with new gray list 'protogray' to keep

prototypes to have their caches visited again) + constant 'MAXMISS'
This commit is contained in:
Roberto Ierusalimschy
2017-05-04 10:32:01 -03:00
parent 8634b2a011
commit 2376eb6347
7 changed files with 95 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.c,v 2.137 2017/04/12 18:56:25 roberto Exp roberto $
** $Id: lstate.c,v 2.138 2017/04/24 16:59:26 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -324,7 +324,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
g->finobjsur = g->finobjold = g->finobjrold = NULL;
g->sweepgc = NULL;
g->gray = g->grayagain = NULL;
g->weak = g->ephemeron = g->allweak = NULL;
g->weak = g->ephemeron = g->allweak = g->protogray = NULL;
g->twups = NULL;
g->totalbytes = sizeof(LG);
g->GCdebt = 0;