Switch to fast string hash.

This commit is contained in:
Mike Pall
2010-07-21 22:53:27 +02:00
parent d05873ee0a
commit 420124372b
4 changed files with 25 additions and 7 deletions

View File

@@ -191,6 +191,8 @@ LUA_API lua_State *lua_newstate(lua_Alloc f, void *ud)
L->dummy_ffid = FF_C;
setmref(L->glref, g);
g->gc.currentwhite = LJ_GC_WHITE0 | LJ_GC_FIXED;
g->strempty.marked = LJ_GC_WHITE0;
g->strempty.gct = ~LJ_TSTR;
g->allocf = f;
g->allocd = ud;
setgcref(g->mainthref, obj2gco(L));