diff options
author | Mike Pall <mike> | 2010-07-21 22:53:27 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2010-07-21 22:53:27 +0200 |
commit | 420124372b7643410a1cdd6f80b9cc8aa6ec1302 (patch) | |
tree | 6048404974755391eec68a445258639d8d41425e /src/lj_gc.c | |
parent | d05873ee0ae63ee47710a2c9843d032010cc296f (diff) | |
download | luajit-420124372b7643410a1cdd6f80b9cc8aa6ec1302.tar.gz luajit-420124372b7643410a1cdd6f80b9cc8aa6ec1302.tar.bz2 luajit-420124372b7643410a1cdd6f80b9cc8aa6ec1302.zip |
Switch to fast string hash.
Diffstat (limited to 'src/lj_gc.c')
-rw-r--r-- | src/lj_gc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_gc.c b/src/lj_gc.c index 0f0ca82e..8147cb55 100644 --- a/src/lj_gc.c +++ b/src/lj_gc.c | |||
@@ -540,6 +540,7 @@ static void atomic(global_State *g, lua_State *L) | |||
540 | 540 | ||
541 | /* Prepare for sweep phase. */ | 541 | /* Prepare for sweep phase. */ |
542 | g->gc.currentwhite = cast_byte(otherwhite(g)); /* Flip current white. */ | 542 | g->gc.currentwhite = cast_byte(otherwhite(g)); /* Flip current white. */ |
543 | g->strempty.marked = g->gc.currentwhite; | ||
543 | setmref(g->gc.sweep, &g->gc.root); | 544 | setmref(g->gc.sweep, &g->gc.root); |
544 | g->gc.estimate = g->gc.total - (MSize)udsize; /* Initial estimate. */ | 545 | g->gc.estimate = g->gc.total - (MSize)udsize; /* Initial estimate. */ |
545 | } | 546 | } |