fitzgen opened issue #13114:
We could probably even move the
VM*HeaderandVMGcRefdefinitions intowasmtime-environsinceVMGcRefis always 32 bits regardless of the target pointer size._Originally posted by @fitzgen in https://github.com/bytecodealliance/wasmtime/pull/13107#discussion_r3089116958_
fitzgen commented on issue #13114:
One thing to note is that the current
VMDrcHeaderandVMCopyingHeadertypes are defined in a module with visibility where they can only be used by the correct collector, and we have someunsafetrait implementations that rely on this visibility, and would instead become something like// SAFETY: nothing uses these when they shouldn't, which is much less satisfying.But maybe is worth it to be able to just use
offset_of!instead of defining constants manually and adding tests to assert that the constants match the actual struct's field's offsets?
alexcrichton added the wasm-proposal:gc label to Issue #13114.
Last updated: May 03 2026 at 22:13 UTC