lua-users home
lua-l archive

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


> Is it safe to trigger EGC by returning 0 once from allocation function?

Sure, as long as the call is actually trying to allocate memory (that
is, newsize > oldsize). The allocation function should never fail when
freeing memory (newsize <= oldsize).

-- Roberto