4 ms·
Wouldn’t a stack map have that value as well?
by celeritascelery 2y ago
Wouldn’t a stack map have that value as well?
- kazinator 2y agoIf the compiler puts out a stack map that is conservative, then the GC scan will be effectively conservative. The compiler has to compensate for that somehow. If a temporary location is in the stackmap, such that the value in it is a dead value before a function call, the compiler has to insert an instruction to null out that temporary location.
- Rusky 2y agoAnd the same can of course be done under conservative GC...
- kazinator 2y agoBut it won't, because people implement conservative GCs when they are not in control of all the pieces, like the compilers used for some parts of their run-time.
- Rusky 2y agoThe point of the post is that conservative GC can be useful for reasons other than that simple lack of control.