[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: PATCH: fixes bug with calling garbage collector from custom lua_Alloc
- From: "Bogdan Marinescu" <bogdan.marinescu@...>
- Date: Tue, 13 May 2008 10:07:50 +0300
Once again, excellent work. I can't wait to test this on an embedded
platform, but right now my ARM board is dead for some reason. I'll try
with another board though.
On Tue, May 13, 2008 at 12:06 AM, Robert G. Jakabosky
<bobby@sharedrealm.com> wrote:
> Updated patch attached 'emergency_gc-5.1.3.patch'. Fixed a bug with the
> old 'arg' table used by vararg functions when "LUA_COMPAT_VARARG" is defined
> in luaconf.h.
>
>
> On Sunday 11, Bogdan Marinescu wrote:
>
>
> > > I could move the memlimit+"emergency GC on failed allocation" code into
> > > the default allocator that gets replaced by the custom allocator. This
> > > way user that don't want to create their own allocator can use the
> > > memlimit feature and others that want more control can replace it with
> > > their own tuned allocator. I think this might be the best option.
> >
> > I agree with this, I also think this is the best option.
> Done. Custom allocators replace the default allocator that implements support
> for memlimit and the emergency full gc. This will mean that the memlimit
> feature will be disabled by a custom allocator.
>
> --
> Robert G. Jakabosky
>