News for hackers. Stuff that matters.
Re:Conservative GC: Is It Really That Bad? by dbg_nsk on Thursday February 22, 2018 @07:10AM (#16436994)
The problem is that it all depends on the liveness of the variables. The same value on the stack can be a root at the begining of the method as the corresponding variable is still alive, and later it becomes useless as the variable is already dead. So, you still need to know a location of each live reference at every safepoint (and that means several stack-maps for each method).
Re:Conservative GC: Is It Really That Bad? by willvarfar on Thursday February 22, 2018 @07:29AM (#16437064)
You can zero them when they are not live.
Re:Conservative GC: Is It Really That Bad? by dbg_nsk on Thursday February 22, 2018 @07:57AM (#16437211)
Yeah, we've tried that. It was one of the attempts of improving conservative GC (no dead values on the stack => no false roots). Unfortunately, it causes noticeable performance degradation, so it is easier to consult with stack maps about liveness of the variable.