2 ms·
What is so costly about GC roots? Considering the stack is used in a LIFO manner, most stack pages never change.
by lostmsu 4y ago
What is so costly about GC roots? Considering the stack is used in a LIFO manner, most stack pages never change.
- pron 4y agoThey have to be scanned in every collection and G1 scans them in a stop-the-world pause. Other references may not be scanned at all in most collections (partial), and when they are, G1 scans them concurrently. They're less of a problem with ZGC.