From f5f3df3bd17fb3489bbd26ab39fe1580a8dbf9c9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 23 Feb 2017 18:07:34 -0300 Subject: generational collection: new attempt (still incomplete) --- lapi.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index 1c4d07dd..494fce75 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 2.258 2016/01/05 16:07:21 roberto Exp roberto $ +** $Id: lapi.c,v 2.259 2016/02/29 14:27:14 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -1097,6 +1097,14 @@ LUA_API int lua_gc (lua_State *L, int what, int data) { res = g->gcrunning; break; } + case LUA_GCGEN: { + luaC_changemode(L, KGC_GEN); + break; + } + case LUA_GCINC: { + luaC_changemode(L, KGC_NORMAL); + break; + } default: res = -1; /* invalid option */ } lua_unlock(L); -- cgit v1.2.3-55-g6feb