diff options
author | Benoit Germain <bnt period germain arrobase gmail period com> | 2014-02-18 09:56:23 +0100 |
---|---|---|
committer | Benoit Germain <bnt period germain arrobase gmail period com> | 2014-02-18 09:56:23 +0100 |
commit | 48517ca661895a0c70093e78f165866cb9363206 (patch) | |
tree | a440e16a69b0a85cdb5663ba181a1c3ac2bf0bc5 /src/tools.h | |
parent | 5f092fe0ec8b6942c63262e7c14c7e4ba913b023 (diff) | |
download | lanes-48517ca661895a0c70093e78f165866cb9363206.tar.gz lanes-48517ca661895a0c70093e78f165866cb9363206.tar.bz2 lanes-48517ca661895a0c70093e78f165866cb9363206.zip |
Lanes init crash fix
* bumped version to 3.9.1
* keeper array is allocated with master state's alloc function instead
of malloc()/free()
* prevent application crash when specifying a very large number of
keepers in the configuration options
* removed some keeper desinit legacy dead code
* any error occuring during one-time inits is raised outside the
one-time mutex protected code region
Diffstat (limited to 'src/tools.h')
-rw-r--r-- | src/tools.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools.h b/src/tools.h index ebe407b..5bd4b69 100644 --- a/src/tools.h +++ b/src/tools.h | |||
@@ -118,7 +118,7 @@ enum eLookupMode | |||
118 | }; | 118 | }; |
119 | 119 | ||
120 | char const* push_deep_proxy( lua_State* L, DEEP_PRELUDE* prelude, enum eLookupMode mode_); | 120 | char const* push_deep_proxy( lua_State* L, DEEP_PRELUDE* prelude, enum eLookupMode mode_); |
121 | void luaG_inter_copy_package( lua_State* L, lua_State* L2, int _idx, enum eLookupMode mode_); | 121 | int luaG_inter_copy_package( lua_State* L, lua_State* L2, int package_idx_, enum eLookupMode mode_); |
122 | 122 | ||
123 | int luaG_inter_copy( lua_State *L, lua_State *L2, uint_t n, enum eLookupMode mode_); | 123 | int luaG_inter_copy( lua_State *L, lua_State *L2, uint_t n, enum eLookupMode mode_); |
124 | int luaG_inter_move( lua_State *L, lua_State *L2, uint_t n, enum eLookupMode mode_); | 124 | int luaG_inter_move( lua_State *L, lua_State *L2, uint_t n, enum eLookupMode mode_); |
@@ -134,7 +134,7 @@ extern MUTEX_T mtid_lock; | |||
134 | void populate_func_lookup_table( lua_State* L, int _i, char const* _name); | 134 | void populate_func_lookup_table( lua_State* L, int _i, char const* _name); |
135 | void serialize_require( lua_State *L); | 135 | void serialize_require( lua_State *L); |
136 | int initialize_on_state_create( lua_State *L); | 136 | int initialize_on_state_create( lua_State *L); |
137 | void call_on_state_create( lua_State* L, lua_State* from_, enum eLookupMode mode_); | 137 | int call_on_state_create( lua_State* L, lua_State* from_, enum eLookupMode mode_); |
138 | 138 | ||
139 | extern MUTEX_T require_cs; | 139 | extern MUTEX_T require_cs; |
140 | 140 | ||