Skip to content

Handle OOM in Linker::instantiate_pre#12683

Merged
fitzgen merged 1 commit intobytecodealliance:mainfrom
fitzgen:handle-oom-in-linker-instantiate-pre
Feb 27, 2026
Merged

Handle OOM in Linker::instantiate_pre#12683
fitzgen merged 1 commit intobytecodealliance:mainfrom
fitzgen:handle-oom-in-linker-instantiate-pre

Conversation

@fitzgen
Copy link
Member

@fitzgen fitzgen commented Feb 26, 2026

Depends on #12682

Part of #12069

@fitzgen fitzgen requested review from a team as code owners February 26, 2026 22:10
@fitzgen fitzgen requested review from alexcrichton and removed request for a team February 26, 2026 22:10
InstancePreDefinitions {
#[expect(dead_code, reason = "only here to keep the original value alive")]
defs: Arc<[Definition]>,
defs: Arc<collections::Vec<Definition>>,
Copy link
Member

Choose a reason for hiding this comment

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

As we go further and further down this road, were you thinking of replacing these with KVec<T> at some point? Or were you hoping someone else would pick that up?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm still not sold on KVec<T> which is my reason for delaying...

Leaning back towards TryVec<T> again...

I don't know

@fitzgen fitzgen force-pushed the handle-oom-in-linker-instantiate-pre branch from a65481a to 709ab40 Compare February 26, 2026 23:27
@fitzgen fitzgen enabled auto-merge February 26, 2026 23:27
@fitzgen fitzgen added this pull request to the merge queue Feb 26, 2026
Merged via the queue into bytecodealliance:main with commit 0f28058 Feb 27, 2026
45 checks passed
@fitzgen fitzgen deleted the handle-oom-in-linker-instantiate-pre branch February 27, 2026 00:06
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