lua-users home
lua-l archive

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


> Are you doing a full/step GC on each allocation?  Also is the GC only called 
> during allocations where newsize > oldsize or on every call to 'l_alloc()'?

Only when newsize > oldsize (that is, "real" allocations). Lua assumes
that the allocator cannot fail when newsize <= oldsize, so the emergency
collector will never be called in those cases.

-- Roberto