Skip to content

Move the object size out of the reserved bits in the DRC collector #11169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Jul 1, 2025

We are going to use those bits for other things as we implement #11162.

This also lets us increase the largest supported GC allocation to a full u32::MAX bytes.

We are going to use those bits for other things as we implement
bytecodealliance#11162. This also lets us
increase the largest supported GC allocation to a full u32::MAX bytes.
@fitzgen fitzgen requested review from a team as code owners July 1, 2025 00:43
@fitzgen fitzgen requested review from alexcrichton and removed request for a team July 1, 2025 00:43
)
)

(assert_trap (invoke "f") "allocation size too large")
Copy link
Member

Choose a reason for hiding this comment

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

Is it worth adapting this test to the new limit of 32-bits?

Copy link
Member Author

Choose a reason for hiding this comment

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

tests/misc_testsuite/gc/array-alloc-too-large.wast already tests the 32-bit limit, so I think we are good.

@fitzgen fitzgen enabled auto-merge July 1, 2025 01:09
@fitzgen fitzgen added this pull request to the merge queue Jul 1, 2025
Merged via the queue into bytecodealliance:main with commit c953cc8 Jul 1, 2025
42 checks passed
@fitzgen fitzgen deleted the move-object-size-out-of-reserved-bits branch July 1, 2025 01:46
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