Please add to Lua 5.1 (with lua_pushthread): lua/src/lapi.c: ======= LUA_API void lua_pushtable (lua_State *L, const void *t) { lua_lock(L); sethvalue(L->top, t); api_incr_top(L); lua_unlock(L); } =======