change in hash algorithm so that it does not need empty slot

(tables can be 100% full)
This commit is contained in:
Roberto Ierusalimschy
2005-01-05 16:20:51 -02:00
parent 65726f3e2e
commit e2498e079e
9 changed files with 125 additions and 108 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.c,v 2.19 2004/12/13 12:15:11 roberto Exp $
** $Id: lstate.c,v 2.20 2005/01/04 15:55:12 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -189,9 +189,6 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
g->grayagain = NULL;
g->weak = NULL;
g->tmudata = NULL;
setnilvalue(gkey(g->dummynode));
setnilvalue(gval(g->dummynode));
gnext(g->dummynode) = NULL;
g->totalbytes = sizeof(LG);
g->gcpace = GCDIV;
g->incgc = 1;