Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What is so costly about GC roots? Considering the stack is used in a LIFO manner, most stack pages never change.


They 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: