3 ms·
I mostly agree with all of your points, and the core message - it's all tradeoffs. Just one nitpick though: > 6. It's tradeoffs. Tracing gcs also end up needi
by tsimionescu 5y ago
I mostly agree with all of your points, and the core message - it's all tradeoffs.
Just one nitpick though:
> 6. It's tradeoffs. Tracing gcs also end up needing to scan the entire heap every so often.
This is not accurate: tracing GCs always start from the roots and only ever visit live objects. By definition, the objects that they free are not reachable from anywhere. "Full scans" typically refer to various optimization strategies that tracing GCs implement to avoid scanning all roots (e.g. generations, per-thread scans) which do rely on still occasionally doing a full scan (scanning all live objects in all generations, or in all threads).
- elcritch 5y agoYah you’re right. I didn’t quite describe that correctly, but mostly I meant scanning the “live” objects of the heap.