|
|
|
|
|
by mananaysiempre
72 days ago
|
|
Normally the reason to do a conservative GC is because it makes the VM’s implementation (and potentially FFI) simpler, not because it’s faster. Also for fun of course. (There are reasons a fully-conservative design might be faster, like not having to havr a ton of scanning functions if you have a ton of disparate types, but in general my perception is that production GCs are normally moving to at least some degree, which a fully conservative one can’t be.) |
|
The current version of the collector also compacts the heap and moves values around. All conservatively discovered values get pinned.