Skip to content

fix(bindgen): issue with lifting resources#1572

Merged
vados-cosmonic merged 4 commits into
bytecodealliance:mainfrom
vados-cosmonic:fix(bindgen)=issue-with-lifting-resources
May 29, 2026
Merged

fix(bindgen): issue with lifting resources#1572
vados-cosmonic merged 4 commits into
bytecodealliance:mainfrom
vados-cosmonic:fix(bindgen)=issue-with-lifting-resources

Conversation

@vados-cosmonic
Copy link
Copy Markdown
Collaborator

Resolves #1380

This PR also likely resolves other related reports around the same time, but I have not yet confirmed, only this one has been reproduced and fixed.

@vados-cosmonic vados-cosmonic requested a review from andreiltd as a code owner May 29, 2026 10:33
@vados-cosmonic
Copy link
Copy Markdown
Collaborator Author

The combined component that serves as a regression test is a 18MB binary (C++ component composed with a Python component), so a follow up PR will introduce machinery for building those components and a separate extended test suite will be created.

This commit fixes resource origination tracking (i.e. figuring out
where a resource was created) that was used when deciding how to
borrow a given resource -- the previous code did not work for composed
components, and did not/could not properly track inter-component transfers.
@vados-cosmonic vados-cosmonic force-pushed the fix(bindgen)=issue-with-lifting-resources branch from 1aafe7c to 59f605d Compare May 29, 2026 14:53
@vados-cosmonic vados-cosmonic enabled auto-merge May 29, 2026 14:53
@vados-cosmonic vados-cosmonic force-pushed the fix(bindgen)=issue-with-lifting-resources branch from 39d6aa2 to 7b48a80 Compare May 29, 2026 15:33
@vados-cosmonic vados-cosmonic added this pull request to the merge queue May 29, 2026
Merged via the queue into bytecodealliance:main with commit 3eee57f May 29, 2026
45 checks passed
@vados-cosmonic vados-cosmonic deleted the fix(bindgen)=issue-with-lifting-resources branch May 29, 2026 16:00
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.

Bug report: Treat resource type errors as string type.

1 participant