[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Forcing a GC collection from within the allocator?
- From: Mark Hamburg <mark@...>
- Date: Sun, 24 Aug 2008 22:47:44 -0700
Note that for non-Lua allocations you can frequently fire off a GC if
you run out of space. Be careful if you are running multi-threaded.
You don't want a background thread starting a GC while the foreground
thread is running regular Lua logic. You may even want to run the GC a
few times to flush through finalization logic.