lua-users home
lua-l archive

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

> Every instruction that will create gcobject will do a checkGC on the
> end. "checkGC" will set stack top to instruction register and do a gc
> step.This may bring the "compile time infomation" which indicate the
> current "top" to the runtime.But what is the purpose of doing this? This
> may be helpful to mark object precisely when using a "stop world"
> gc. But when using "incremental gc", it seems useless.

It works exactly the same way for an incremental and a stop-the-world
collectors. Why there would be any difference? The incremental collector
also needs to mark live objects, and therefore it needs to know which
references are alive.

-- Roberto