lua-users home
lua-l archive

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


> Putting a call to lua_gc(L, LUA_GCSTEP, 200) after every JIT
> compilation seems to help but then causes tests in gc.lua to fail
> (don't know why).
> 
> [...]
> 
> Any pointers on where I should look for how to solve this in a better way?

You should look at the tests :-) Tests in gc.lua (and some other places)
assume some specifc behhavior of the gc (e.g., it will not trigger a
new cycle immediately after the last one); small changes in GC hehavior
can break the tests without violating anything about the official
specification.

-- Roberto