Question

If SM's GC is a conservative stack scanner, why is the example 3 "bad"? Why is "root as you go" necessary? The GC should scan the stack and observe that str1, str2 are roots, no?

Was it helpful?

Solution

You need to get your timeline straight.

In other words: you found a piece of very outdated documentation. Indeed, the tags at the bottom say: NeedsEditorialReview, NeedsTechnicalReview. Not something that you should rely on.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top