lua-users home
lua-l archive

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


> > On Sun, May 27, 2012 at 12:04 AM, Roberto Ierusalimschy
> > <roberto@inf.puc-rio.br> wrote:
> > > (In particular, with stepmul = maxint and pause = 0, the interpreter
> > > should run a whole collection cycle for each single allocation ;)
> > 
> > With the test I posted stepmul = maxint and pause = 0 appears to cause
> > a full collection every 50 allocations. Is that right?
> 
> Not exactly. I expected it to do a full collection every few
> allocations. I am afraid stepmul = maxint may overflow on 32-bit
> machines. I will check that.

Apparently there is no overflows. It really should do a full collection
for every new object created. (Some objects may allocate several blocks
of memory, but 50 is unusual.) In some quick tests I got the expected
behavior.

-- Roberto