Garbage Collection (WasmGC)
WasmGC provides reference-typed objects (structs, arrays) that engines can manage with garbage collection. This enables efficient runtimes for languages like Kotlin, Java, and Dart.
Key concepts:
- Reference-typed heaps managed by the VM.
- Typed
structandarrayvalues. - Interop with host via
externref.
Syntax and support are still evolving — check your toolchain’s documentation for exact WAT forms.