From 8da245bfd2a767e1a738c2a85492d1f64d68f016 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 11 Dec 2009 19:31:14 -0200 Subject: better to keep GC state numbers sequential, to optimize switch in 'singlestep' --- lstring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstring.c') diff --git a/lstring.c b/lstring.c index b79cdb61..4b0d398d 100644 --- a/lstring.c +++ b/lstring.c @@ -1,5 +1,5 @@ /* -** $Id: lstring.c,v 2.13 2009/04/29 17:09:41 roberto Exp roberto $ +** $Id: lstring.c,v 2.14 2009/12/11 19:14:59 roberto Exp roberto $ ** String table (keeps all strings handled by Lua) ** See Copyright Notice in lua.h */ @@ -23,7 +23,7 @@ void luaS_resize (lua_State *L, int newsize) { int i; stringtable *tb = &G(L)->strt; /* cannot resize while GC is traversing strings */ - luaC_runtilstate(L, ~GCSsweepstring); + luaC_runtilstate(L, ~bitmask(GCSsweepstring)); if (newsize > tb->size) { luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); for (i = tb->size; i < newsize; i++) tb->hash[i] = NULL; -- cgit v1.2.3-55-g6feb