diff options
author | Mike Pall <mike> | 2010-04-25 19:45:54 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2010-04-25 19:45:54 +0200 |
commit | f396f3d192eb635b3b3a3d074e45e6b810689918 (patch) | |
tree | 4b9d8f3d98f5f5438c2930b2ce034cd874daf860 /src/luajit.c | |
parent | 2ccb24f894bf56873275d8ca42562c0bd6bbc193 (diff) | |
download | luajit-f396f3d192eb635b3b3a3d074e45e6b810689918.tar.gz luajit-f396f3d192eb635b3b3a3d074e45e6b810689918.tar.bz2 luajit-f396f3d192eb635b3b3a3d074e45e6b810689918.zip |
Avoid starting a GC cycle immediately after library init.
Diffstat (limited to 'src/luajit.c')
-rw-r--r-- | src/luajit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luajit.c b/src/luajit.c index cc2bf710..e8024479 100644 --- a/src/luajit.c +++ b/src/luajit.c | |||
@@ -470,7 +470,7 @@ static int pmain(lua_State *L) | |||
470 | LUAJIT_VERSION_SYM(); /* linker-enforced version check */ | 470 | LUAJIT_VERSION_SYM(); /* linker-enforced version check */ |
471 | lua_gc(L, LUA_GCSTOP, 0); /* stop collector during initialization */ | 471 | lua_gc(L, LUA_GCSTOP, 0); /* stop collector during initialization */ |
472 | luaL_openlibs(L); /* open libraries */ | 472 | luaL_openlibs(L); /* open libraries */ |
473 | lua_gc(L, LUA_GCRESTART, 0); | 473 | lua_gc(L, LUA_GCRESTART, -1); |
474 | s->status = handle_luainit(L); | 474 | s->status = handle_luainit(L); |
475 | if (s->status != 0) return 0; | 475 | if (s->status != 0) return 0; |
476 | script = collectargs(argv, &has_i, &has_v, &has_e); | 476 | script = collectargs(argv, &has_i, &has_v, &has_e); |