Skip to content

Many more component OOM tests#13088

Merged
fitzgen merged 10 commits intobytecodealliance:mainfrom
fitzgen:many-more-component-oom-tests
Apr 14, 2026
Merged

Many more component OOM tests#13088
fitzgen merged 10 commits intobytecodealliance:mainfrom
fitzgen:many-more-component-oom-tests

Conversation

@fitzgen
Copy link
Copy Markdown
Member

@fitzgen fitzgen commented Apr 14, 2026

See each commit for details

@fitzgen fitzgen requested review from a team as code owners April 14, 2026 13:42
@fitzgen fitzgen requested review from alexcrichton and removed request for a team April 14, 2026 13:42
Comment on lines +595 to +599
let image = self.engine_code().image();
let mut v = Vec::new();
v.try_reserve(image.len())?;
v.extend_from_slice(image);
Ok(v)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for reviewers: we aren't using TryVec here because we are returning a Vec in the public API.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this use TryVec and then convert it to a Vec before returning?

Comment on lines +595 to +599
let image = self.engine_code().image();
let mut v = Vec::new();
v.try_reserve(image.len())?;
v.extend_from_slice(image);
Ok(v)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this use TryVec and then convert it to a Vec before returning?

@fitzgen fitzgen enabled auto-merge April 14, 2026 14:28
@fitzgen fitzgen added this pull request to the merge queue Apr 14, 2026
Merged via the queue into bytecodealliance:main with commit 4426555 Apr 14, 2026
48 checks passed
@fitzgen fitzgen deleted the many-more-component-oom-tests branch April 14, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants