From fb0c67b1c95b6a595c0cd34a66136af6193b4d1b Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Sat, 26 Jan 2013 20:21:39 +0100 Subject: version 3.4.4 * bugfix: take into account the fact that "coroutine" is no longer part of base library in Lua 5.2 * bugfix: if "bit32" was listed in the libraries, it wouldn't open (library list parsing failing on digits) * bugfix: Use luaL_requiref() to open standard libraries in Lua 5.2 as we should * bugfix: any Lua state created by Lanes reuses the allocator function of the originating state * bugfix: don't call on_state_create() while GC is suspended during lua state initialization --- src/keeper.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/keeper.c') diff --git a/src/keeper.c b/src/keeper.c index a7c8647..516fe85 100644 --- a/src/keeper.c +++ b/src/keeper.c @@ -569,9 +569,7 @@ char const* init_keepers( lua_State* L, int const _nbKeepers, lua_CFunction _on_ // // 'io' for debugging messages, 'package' because we need to require modules exporting idfuncs // the others because they export functions that we may store in a keeper for transfer between lanes - lua_State* K = luaG_newstate( "*", _on_state_create); - if( !K) - return "out of memory"; + lua_State* K = luaG_newstate( L, "*", _on_state_create); DEBUGSPEW_CODE( fprintf( stderr, "init_keepers %d\n", i)); -- cgit v1.2.3-55-g6feb