Looks to me like either markAndTrace: or a specialized version, say markAndTraceRootObject:, should maintain a flag, refersToYoungObject, and clear the object from the rootTable (and clear the root bit) if refersToYoungObject is false at the end of the scan. But with the pointer reversal algorithm it is hard to see where to maintain this flag.
Can those who know enlighten this ignorant soul?
TIA
On Sat, Feb 21, 2009 at 4:42 AM, Igor Stasenko <
siguctua@gmail.com <mailto:
siguctua@gmail.com>> wrote:
Hi,
i'd like to ask, is it safe to clear the root flag for every object
in system.
I'm artificially creating a new image, and i'd like to know, what
objects should be marked as roots initially, or VM can care about it
itself?
--
Best regards,
Igor Stasenko AKA sig.