lua-users home
lua-l archive

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


Roberto: I may have missed something, but ..

This function:

void luaC_step (lua_State *L) {

would in fact handle incremental behaviour with this fragment

  } while (lim > 0 || !g->incgc);

however a grep on the source reveals this function and
indeed luaC_fullgc are never called except in lua_gc.

lua_gc in turn is only called by collectgarbage with
an appropriate flag.

I can't see how it can work if it isn't called.

The step function should be called on every memory
allocation shouldn't it?

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net