smarcd opened PR #14979 from smarcd:global-get-numeric to bytecodealliance:main:
Reading a numeric global never has to clone a GC reference, so it does not need
AsContextMut. This addsGlobal::get_numeric(&self, impl AsContext) -> Option<Val>, returningNonefor reference-typed globals, so embedders can read numeric globals from the epoch and call hooks that only getStoreHookStateafter #14386.
Global::getnow reuses the same numeric read, so there is no duplicated implementation. Tables are left alone for now.Closes #14965
smarcd removed the review request for wasmtime-core-reviewers from PR #14979.
smarcd requested pchickey for a review on PR #14979.
smarcd requested wasmtime-core-reviewers for a review on PR #14979.
github-actions[bot] added the label wasmtime:api on PR #14979.
:thumbs_up: pchickey submitted PR review.
pchickey added PR #14979 Add Global::get_numeric taking AsContext to the merge queue
github-merge-queue[bot] removed PR #14979 Add Global::get_numeric taking AsContext from the merge queue
pchickey commented on PR #14979:
CI failure appears to be due to temporary network failure, putting this back into the queue
pchickey added PR #14979 Add Global::get_numeric taking AsContext to the merge queue
github-merge-queue[bot] removed PR #14979 Add Global::get_numeric taking AsContext from the merge queue
pchickey commented on PR #14979:
CI should be fixed by #14998
pchickey added PR #14979 Add Global::get_numeric taking AsContext to the merge queue
:check: pchickey merged PR #14979.
pchickey removed PR #14979 Add Global::get_numeric taking AsContext from the merge queue
Last updated: Oct 31 2026 at 23:03 UTC