[Tarantool-patches] [PATCH 3/4] fiber: keep reference to userdata if fiber created once

Oleg Babin olegrok at tarantool.org
Fri Sep 3 09:12:10 MSK 2021


On 03.09.2021 00:39, Vladislav Shpilevoy wrote:
>> diff --git a/src/lib/core/fiber.c b/src/lib/core/fiber.c
>> index 588b78504..39b67f940 100644
>> --- a/src/lib/core/fiber.c
>> +++ b/src/lib/core/fiber.c
>> @@ -32,6 +32,7 @@
>>   
>>   #include <trivia/config.h>
>>   #include <trivia/util.h>
>> +#include <lauxlib.h>
> Please, don't. Libcore should not depend on Lua anyhow.


I understand you but I don't see another way to initialize refs with 
LUA_NOREF.

I tried to do it only for Lua-created fiber but there is fibers from the 
pool and

they also required to be initialized. And in general any non-lua fiber 
could be find with

fiber.find and referenced in Lua.


Do you have any ideas how it could be fixed?




More information about the Tarantool-patches mailing list