Skip to content

Add OOM test for component Func::call_async#13017

Merged
fitzgen merged 5 commits into
bytecodealliance:mainfrom
fitzgen:handle-oom-in-component-func-call-async
Apr 10, 2026
Merged

Add OOM test for component Func::call_async#13017
fitzgen merged 5 commits into
bytecodealliance:mainfrom
fitzgen:handle-oom-in-component-func-call-async

Conversation

@fitzgen

@fitzgen fitzgen commented Apr 9, 2026

Copy link
Copy Markdown
Member

Add NameMap::get_by_str to avoid infallible String allocation in
component export name lookups. The NameMapNoIntern implementation
allocated a String on every lookup; the new method uses borrowed
&str keys directly on the underlying IndexMap instead.

Depends on #12993

@fitzgen fitzgen requested review from a team as code owners April 9, 2026 19:04
@fitzgen fitzgen requested review from alexcrichton and removed request for a team April 9, 2026 19:04
Add NameMap::get_by_str to avoid infallible String allocation in
component export name lookups. The NameMapNoIntern implementation
allocated a String on every lookup; the new method uses borrowed
&str keys directly on the underlying IndexMap instead.
@fitzgen fitzgen force-pushed the handle-oom-in-component-func-call-async branch from ac21e79 to f4fda42 Compare April 9, 2026 20:17
Comment thread crates/environ/src/component/names.rs Outdated
@github-actions github-actions Bot added fuzzing Issues related to our fuzzing infrastructure wasmtime:api Related to the API of the `wasmtime` crate itself labels Apr 9, 2026
@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown

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 .github/subscribe-to-label.json configuration file.

Learn more.

@fitzgen

fitzgen commented Apr 10, 2026

Copy link
Copy Markdown
Member Author

@alexcrichton want to take another look? Adjusting the trait got pretty big, although it is mostly stuff I've done similar things for in follow-up commits that I haven't pushed up as new PRs yet.

Comment thread crates/environ/src/component/names.rs Outdated
@fitzgen fitzgen enabled auto-merge April 10, 2026 20:17
@fitzgen fitzgen added this pull request to the merge queue Apr 10, 2026
Merged via the queue into bytecodealliance:main with commit 7bd61b8 Apr 10, 2026
92 of 96 checks passed
@fitzgen fitzgen deleted the handle-oom-in-component-func-call-async branch April 10, 2026 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fuzzing Issues related to our fuzzing infrastructure wasmtime:api Related to the API of the `wasmtime` crate itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants