commit fc3eaa2559f2b9b929892c4a798809f3aa93effe
parent daff7c3b4de14278a06d86997baa6ab9db7b662b
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Tue, 6 Feb 2018 13:32:09 -0200
GC default mode for the stand-alone interpreter is generational mode
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lua.c b/lua.c
@@ -1,5 +1,5 @@
/*
-** $Id: lua.c,v 1.231 2017/04/19 12:49:17 roberto Exp roberto $
+** $Id: lua.c,v 1.232 2017/05/24 21:11:19 roberto Exp roberto $
** Lua stand-alone interpreter
** See Copyright Notice in lua.h
*/
@@ -571,6 +571,7 @@ static int pmain (lua_State *L) {
}
luaL_openlibs(L); /* open standard libraries */
createargtable(L, argv, argc, script); /* create table 'arg' */
+ lua_gc(L, LUA_GCGEN, 0, 0); /* GC in generational mode */
if (!(args & has_E)) { /* no option '-E'? */
if (handle_luainit(L) != LUA_OK) /* run LUA_INIT */
return 0; /* error running LUA_INIT */