From 5c87f61e6b1567400d2bd8f452939bb948f16dda Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 25 Mar 2010 16:37:23 -0300 Subject: major collections in generational mode --- lstate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index 02554c4d..b00b62a1 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.72 2010/03/24 13:07:01 roberto Exp roberto $ +** $Id: lstate.c,v 2.73 2010/03/25 13:06:36 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -254,6 +254,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { g->uvhead.u.l.prev = &g->uvhead; g->uvhead.u.l.next = &g->uvhead; g->GCthreshold = MAX_LUMEM; /* no GC while building state */ + g->lastmajormem = 0; g->strt.size = 0; g->strt.nuse = 0; g->strt.hash = NULL; -- cgit v1.2.3-55-g6feb