Re: VM/GC question for gurus.

Roberto Ierusalimschy <[email protected]>
Newsgroups gmane.comp.lang.lua.general
Message-ID <[email protected]>
> > Taking a look at 5.4.8 lvm.c and a couple other places lea me to think lua
> > does not take into account the memory usage of the lua_load created
> > function. Can this be true ?
> >
> 
> I do not mean it does not account it, I know it does. I mean it does not
> notice the memory usage has grown a lot due to the function being loaded,
> and as the test loop does not execute and makes it garabage, and has not
> any other memory consuming op it does not notice memory is growing and gc
> needs to be invoked ( I notice lvm.c has a checkGc macro which does this in
> some interesting point, but maybe the thight benchmark loop fails to hit
> any of them ).

You may be right; we will check that. luaL_loadfilex creates a new
string with the file name (calling 'lua_pushfstring'), and that call
checks the collector. But lua_load does not do that check.

-- Roberto

-- 
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/20260318172850.GA71584%40arraial.inf.puc-rio.br.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.