Return Lua VM to the pool only after it's error was processed
lua.ApiError contains references to the Lua values, it is likely unsafe to return VM error originated from to the pool and then accessing that error. Returned VM might be snatched by another goroutine, resulting in the unwanted concurrent access.
Loading
Please register or sign in to comment