Today I was reading the lua source, and came across this code in lmem.c (
http://www.lua.org/source/5.2/lmem.c.html#luaM_realloc_ )
if (g->gcrunning) {
luaC_fullgc(L, 1); /* try to free some memory... */
Is that conditional accidentally reversed?
Why run the gc again ONLY if the gc is mid-run?
Wouldn't it make sense to run the gc if it's NOT already running?
Sorry if this is a stupid question >.<
Daurn.