3 ms·
The point of giving it a GC is to let it partake in the host environment's GC instead of bundling its own. It's based around the assumption that the host can no
by Arnavion 5y ago
The point of giving it a GC is to let it partake in the host environment's GC instead of bundling its own. It's based around the assumption that the host can not only do a better job (eg browser JS VMs have plenty of experience with it) but also the GC can be shared in a larger context than an individual wasm program (eg all programs in the same browser tab can use the same GC).
It's also needed for giving host objects to the wasm program since the host objects would be managed by the host GC.