lua-users home
lua-l archive

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




2014-11-19 22:56 GMT-08:00 Dong Feng <middle.fengdong@gmail.com>:

In udata2finalize(), there is

if (issweepphase(g))

    makewhite(g, o);  /* "sweep" object */



It seems to me that marking "o" as white have it about to go through the "marking" step again rather than "sweeping" it. Should the comment revised?

Thanks,
Dong

Another thing puzzles me is, why calling makewhite() only when issweepphase()? In other state, if the object's "__gc" is invoked, shouldn't it be marked as current-white for the possible resurrection?