fitzgen opened PR #12858 from fitzgen:more-oom-handling to bytecodealliance:main:
See commits for details.
fitzgen requested wasmtime-fuzz-reviewers for a review on PR #12858.
fitzgen requested dicej for a review on PR #12858.
fitzgen requested wasmtime-core-reviewers for a review on PR #12858.
fitzgen updated PR #12858.
github-actions[bot] added the label fuzzing on PR #12858.
github-actions[bot] added the label wasmtime:api on PR #12858.
github-actions[bot] commented on PR #12858:
Subscribe to Label Action
cc @fitzgen
<details>
This issue or pull request has been labeled: "fuzzing", "wasmtime:api"Thus the following users have been cc'd because of the following labels:
- fitzgen: fuzzing
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
alexcrichton submitted PR review.
alexcrichton created PR review comment:
s/expect/panic_on_oom/
alexcrichton created PR review comment:
How come this has a
map_err?
alexcrichton created PR review comment:
s/
expect/panic_on_oom/
alexcrichton created PR review comment:
This is kind of unfortunate given that the
Vechere is just an "unfortunate implementation detail". Would you be up for reimplementing this differently to avoid theVecaltogether?I think that should be possible through:
&mut StoreOpaque => Pin<&mut vm::Instance>Pin<&mut vm::Instance> => &Module + Pin<&mut vm::Instance>withmodule_and_selfvm::Instance::get_export_by_index_mutto get all the exports, iterators/borrows from&Modulefor iterating exports and such.It'll require some
unsafesince aStoreIdneeds to get passed in toget_export_by_index_mutbut this is a pretty minorunsafe
alexcrichton created PR review comment:
WDYT about changing the signature here to return
Result<Extern>to avoid needing to have agetand atry_get? This is a relatively minor method so returningResultseems reasonable to me (e.g. the cost of allocating an error on "not present"). Also same logic below forget_by_importand returning an error instead of anOption
fitzgen submitted PR review.
fitzgen created PR review comment:
Whoops, thought I caught all of those.
fitzgen updated PR #12858.
fitzgen has enabled auto merge for PR #12858.
fitzgen updated PR #12858.
fitzgen updated PR #12858.
fitzgen added PR #12858 Handle OOM in the rest of Wasmtime's non-component, -async, -compilation APIs to the merge queue.
alexcrichton commented on PR #12858:
Failed here. I think this may be fixed with a commit from https://github.com/bytecodealliance/wasmtime/pull/12869, https://github.com/bytecodealliance/wasmtime/pull/12869/changes/0570c46de7d93afb0e87e9e8d37b454d12aab35b. I'll re-queue this around that unless you want to add that commit here to resolve the failure.
alexcrichton removed PR #12858 Handle OOM in the rest of Wasmtime's non-component, -async, -compilation APIs from the merge queue.
alexcrichton added PR #12858 Handle OOM in the rest of Wasmtime's non-component, -async, -compilation APIs to the merge queue.
fitzgen commented on PR #12858:
I'll re-queue this around that
Thanks!
alexcrichton merged PR #12858.
alexcrichton removed PR #12858 Handle OOM in the rest of Wasmtime's non-component, -async, -compilation APIs from the merge queue.
Last updated: Apr 12 2026 at 23:10 UTC