[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: When are coroutines collected?
- From: Chris <coderight@...>
- Date: Wed, 27 Feb 2008 11:00:13 -0500
On Wed, Feb 27, 2008 at 10:51 AM, David Given <firstname.lastname@example.org> wrote:
> With Lua 5.2 and a million coroutines I see about 800MB.
The difference may be because I'm running a 64-bit version of Lua.
> *However*, if I stick your script in a function, and run it twice from
> the same Lua session, I *still* see about 800MB, so the memory isn't
> being leaked --- it's merely not being released back to the system.
Now this is interesting. I see this behavior too. However, if I don't
put it in a function and just run the code twice then the memory usage
doubles which is what is happening in my application.
I'm now also thinking this must be an OS issue rather than Lua.