diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-05 16:20:51 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-05 16:20:51 -0200 |
commit | e2498e079e4636217e89f0b28844c4b5df4f8793 (patch) | |
tree | da82e007f0e8153985323c2bdb190811f79e0c57 /lstate.c | |
parent | 65726f3e2e226f6a350a5dba643c13c8edd34965 (diff) | |
download | lua-e2498e079e4636217e89f0b28844c4b5df4f8793.tar.gz lua-e2498e079e4636217e89f0b28844c4b5df4f8793.tar.bz2 lua-e2498e079e4636217e89f0b28844c4b5df4f8793.zip |
change in hash algorithm so that it does not need empty slot
(tables can be 100% full)
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 2.19 2004/12/13 12:15:11 roberto Exp $ | 2 | ** $Id: lstate.c,v 2.20 2005/01/04 15:55:12 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -189,9 +189,6 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { | |||
189 | g->grayagain = NULL; | 189 | g->grayagain = NULL; |
190 | g->weak = NULL; | 190 | g->weak = NULL; |
191 | g->tmudata = NULL; | 191 | g->tmudata = NULL; |
192 | setnilvalue(gkey(g->dummynode)); | ||
193 | setnilvalue(gval(g->dummynode)); | ||
194 | gnext(g->dummynode) = NULL; | ||
195 | g->totalbytes = sizeof(LG); | 192 | g->totalbytes = sizeof(LG); |
196 | g->gcpace = GCDIV; | 193 | g->gcpace = GCDIV; |
197 | g->incgc = 1; | 194 | g->incgc = 1; |