[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: GC stall in luaC_separateudata
- From: "Wesley Smith" <wesley.hoke@...>
- Date: Tue, 4 Dec 2007 00:55:45 -0800
I made a memory pool out of userdata once by setting up a few generic
for the udata classes that overwrites their __gc method to shove the
thing back into a freelist. The allocators would also take from this
freelist. It can be done quite easily with a little Lua script and
you don't have to change any of your code to support it aside from
running the functions over the class when loaded.
wes