lua-users home
lua-l archive

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

Today I was reading the lua source, and came across this code in lmem.c ( )

    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 >.<