lua-users home
lua-l archive

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


> Hmm .. is there an option to just 'junk' the whole
> of memory for a Lua state without bothering with
> finalisation? In that case no collection is needed,
> just delete everything on the free list without a sweep.

Take a look at close_state in lstate.c.  This function is called by
lua_close, and does just what you are asking about - it deletes
everything on the free list without bothering with a mark phase.