[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Lua lanes (possibly) leaking memory
- From: Benoit Germain <bgermain@...>
- Date: Fri, 5 Nov 2010 17:05:32 +0100
> -----Message d'origine-----
> De : lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org]
> 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
>
Hello,
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.
Benoit.