You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Previously, we were storing a `*mut dyn VMStore` in the thread-local `STATE`
variable, then using the `&mut dyn VMStore` from which it was derived, which
invalidates the raw pointer according to stacked borrow rules, triggering
undefined behavior. This fixes that.
Also, it turns out `poll_with_state` needs neither a `T` type parameter nor a
`StoreToken`, so I've removed those.
Note that Alex has plans to consolidate our thread-local state, which should
eliminate the redundant `*mut dyn VMStore` pointers stored in `STATE` and
`INSTANCE_STATE`, which should allow us to simplify `poll_with_state` even more.
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
0 commit comments