[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Memory Allocation Hooks
- From: Spencer Schumann <gauchopuro@...>
- Date: Wed, 12 Jan 2005 07:54:40 -0700
> 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.