bytecodealliance / wasmtime

A fast and secure runtime for WebAssembly
https://wasmtime.dev/
Apache License 2.0
14.82k stars 1.23k forks source link

Skip GC LIFO scope creation on some hostcalls #8811

Closed alexcrichton closed 2 weeks ago

alexcrichton commented 2 weeks ago

This commit skips the creation of a LIFO scope for GC Rooted<T> values for hostcalls using statically typed arguments/results (e.g. Func::wrap) where none of the arguments/results have GC values. This removes the last bit of "GC business" on Func::wrap calls that don't do anything related to GC.