[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: OP_CLOSURE in 5.2
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 7 Feb 2013 10:00:11 -0200
> 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.