lua-users home
lua-l archive

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


On Friday 02, Bogdan Marinescu wrote:
> I saw your post today, and it's very interesting. Not knowing much
> about Lua, I assumed that this (calling the garbage allocator when
> there's no more memory) already happens, it seemed so natural :) I'll
> integrate your patch and see how/if it changes the minimum memory
> requirements for the Lua scripts I'm using as tests. So far, it was
The patch doesn't add a call to the GC from the default allocator.  Take a 
look at the lua_memlimit.c program that I attached to that post.  It has the 
custom allocator that makes the call to the GC.

After I have done more testing to look for other GC bugs, I will work on a 
larger patch that add memlimit + GC call from allocator support to the Lua 
core.  Right now I want to keep the changes to the Lua core to a minimal.

-- 
Robert G. Jakabosky