Skip to content

Fix alias region used when initializing passive segments#13823

Merged
fitzgen merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:tweak-region
Jul 6, 2026
Merged

Fix alias region used when initializing passive segments#13823
fitzgen merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:tweak-region

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

This commit fixes a minor mistake to use the right alias region when initializing a passive element segment during startup. This requires using a slightly different helper than was previously done for GC references because the element segment lives in a different region than the default GC heap.

This commit fixes a minor mistake to use the right alias region when
initializing a passive element segment during startup. This requires
using a slightly different helper than was previously done for GC
references because the element segment lives in a different region than
the default GC heap.
@alexcrichton alexcrichton requested a review from fitzgen July 6, 2026 15:30
@alexcrichton alexcrichton requested review from a team as code owners July 6, 2026 15:30

@fitzgen fitzgen left a comment

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.

I'll wrap this up into a backport for the unreleased release branch, along with the assertion that we always tag everything with an alias region.

@fitzgen fitzgen added this pull request to the merge queue Jul 6, 2026
Merged via the queue into bytecodealliance:main with commit 8592f31 Jul 6, 2026
53 checks passed
@alexcrichton alexcrichton deleted the tweak-region branch July 6, 2026 19:04
alexcrichton added a commit that referenced this pull request Jul 6, 2026
* Add an alias region for data segments (#13811)

This also bumped the AliasRegionKey's kind bits up to 6, which triggered a mass
renumbering in the disas tests.

* Debug assert that all memory instructions have alias regions (#13825)

We should never emit a load/store instruction that isn't tagged with an alias
region.

* Fix alias region used when initializing passive segments (#13823)

This commit fixes a minor mistake to use the right alias region when
initializing a passive element segment during startup. This requires
using a slightly different helper than was previously done for GC
references because the element segment lives in a different region than
the default GC heap.

---------

Co-authored-by: Alex Crichton <alex@alexcrichton.com>
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