Skip to content
Philipp Janda edited this page Jul 29, 2018 · 1 revision

lua_getextraspace

Because the lua_getextraspace emulation for Lua 5.1 and 5.2 allocates the memory for the extra space in the registry, this function may raise out-of-memory errors. Also, the extra space in coroutines is initialized from the extra space of the main thread when lua_getextraspace is first called in this coroutine. This differs from the 5.3 behavior which allocates and initializes a coroutine's extra space when the coroutine is created.

Clone this wiki locally