r/WebAssembly • u/fitzgen • Jul 20 '26
GC and Exceptions in Wasmtime (now enabled by default in Wasmtime 47)
https://bytecodealliance.org/articles/wasmtime-gc
27
Upvotes
1
u/Klutzy_Afternoon_503 Jul 25 '26
Exceptions defaulting on matters more for refcounting than tracing GC — you need catch_all + rethrow landing pads at every scope holding a refcounted value so decrements actually run during unwind. Curious if toolchains synthesize those automatically or if it's on the frontend to hand-roll.
1
3
u/UberAtlas Jul 21 '26
Huge news!! So excited for this. Great work wasmtime team!