lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> -----Message d'origine-----
> De : []
> De la part de Fredrik Widlund
> Envoyé : vendredi 1 octobre 2010 13:50
> À : Lua mailing list
> Objet : RE: Lua lanes (possibly) leaking memory
> However letting lanes "loose" still seems to be a problem, i.e.
> local linda = lanes.linda()
> lanes.timer(linda, "timer", 0, 0.01)
> while true do
>    local time, message = linda:receive("timer")
>    lanes.gen(function () return 0 end)(lanes, lanes, lanes, lanes, x)
> end


Looking at the Lanes code, a free running lane, once the Lua function has completed, should cleanup its Lua state. It is indeed the case, but only at application shutdown. I've uploaded version 2.0.7 at LuaForge to fix this, but it is probably nowhere as much tested as it should. Let's say that I don't encounter more problems than before when using it :-). In particular, I've only tested under Windows 7.