diff options
author | Robin Gareus <robin@gareus.org> | 2016-08-26 01:18:48 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-08-26 01:18:48 +0200 |
commit | c9f0657c86b3b4a5042d53c72681f20ebad9c21f (patch) | |
tree | f28914400298e21284253426c46b817f2c906369 | |
parent | 07fa803aa19346e088db1b0e9bbadb260e792390 (diff) |
tweak lua GC (once again)
fixes OOM with extreme automation in HP/LP.
-rw-r--r-- | libs/lua/luastate.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/lua/luastate.cc b/libs/lua/luastate.cc index 3b8a7ae25a..8b704fbe6a 100644 --- a/libs/lua/luastate.cc +++ b/libs/lua/luastate.cc @@ -83,7 +83,8 @@ LuaState::collect_garbage_step () { void LuaState::tweak_rt_gc () { - //lua_gc (L, LUA_GCSETPAUSE, 20); + /* GC runs same speed as memory allocation */ + lua_gc (L, LUA_GCSETPAUSE, 100); lua_gc (L, LUA_GCSETSTEPMUL, 100); } |