diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-06 13:32:36 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-06 13:32:36 -0200 |
commit | fc3eaa2559f2b9b929892c4a798809f3aa93effe (patch) | |
tree | c586ee9b09de34d65324390e27e72d120300884a /lua.c | |
parent | daff7c3b4de14278a06d86997baa6ab9db7b662b (diff) | |
download | lua-fc3eaa2559f2b9b929892c4a798809f3aa93effe.tar.gz lua-fc3eaa2559f2b9b929892c4a798809f3aa93effe.tar.bz2 lua-fc3eaa2559f2b9b929892c4a798809f3aa93effe.zip |
GC default mode for the stand-alone interpreter is generational mode
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.231 2017/04/19 12:49:17 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.232 2017/05/24 21:11:19 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -571,6 +571,7 @@ static int pmain (lua_State *L) { | |||
571 | } | 571 | } |
572 | luaL_openlibs(L); /* open standard libraries */ | 572 | luaL_openlibs(L); /* open standard libraries */ |
573 | createargtable(L, argv, argc, script); /* create table 'arg' */ | 573 | createargtable(L, argv, argc, script); /* create table 'arg' */ |
574 | lua_gc(L, LUA_GCGEN, 0, 0); /* GC in generational mode */ | ||
574 | if (!(args & has_E)) { /* no option '-E'? */ | 575 | if (!(args & has_E)) { /* no option '-E'? */ |
575 | if (handle_luainit(L) != LUA_OK) /* run LUA_INIT */ | 576 | if (handle_luainit(L) != LUA_OK) /* run LUA_INIT */ |
576 | return 0; /* error running LUA_INIT */ | 577 | return 0; /* error running LUA_INIT */ |