alexcrichton opened issue #11409:
This line of code:
expands a borrow of
&mut StoreOpaque(selfin this case) into a&mut dyn VMStorewhich is effectively a&mut StoreInner<T>. This is a "widening" operation which makes the original mutable borrow wider by encompassing more fields. This is not a sound operation because a caller might simultaneously be borrowing&mut StoreOpaqueand&mut Tor similarly.
alexcrichton added the wasm-proposal:gc label to Issue #11409.
alexcrichton added the wasmtime:unsafe-code label to Issue #11409.
alexcrichton commented on issue #11409:
This is also arguably a problem during instance allocation and allocation of the gc heap
alexcrichton closed issue #11409:
This line of code:
expands a borrow of
&mut StoreOpaque(selfin this case) into a&mut dyn VMStorewhich is effectively a&mut StoreInner<T>. This is a "widening" operation which makes the original mutable borrow wider by encompassing more fields. This is not a sound operation because a caller might simultaneously be borrowing&mut StoreOpaqueand&mut Tor similarly.
Last updated: Dec 06 2025 at 07:03 UTC