Skip to content
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

Implement the array.copy Wasm GC instruction #9389

Merged
merged 3 commits into from
Oct 7, 2024

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Oct 7, 2024

This also involved fixing some VMGcRef initialization and GC barrier code for globals. That in turn involved making global initialization fallible, which meant that it needed to be pulled out of vmctx initialization and put into instance initialization.

This also involved fixing some `VMGcRef` initialization and GC barrier code for
globals. That in turn involved making global initialization fallible, which
meant that it needed to be pulled out of `vmctx` initialization and put into
instance initialization.

Co-Authored-By: Alex Crichton <[email protected]>
@fitzgen fitzgen requested a review from a team as a code owner October 7, 2024 18:19
@fitzgen fitzgen requested review from alexcrichton and removed request for a team October 7, 2024 18:19
Comment on lines 109 to 110
destination.write(None);
let destination = unsafe { destination.assume_init_mut() };
Copy link
Member

Choose a reason for hiding this comment

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

Looks like MaybeUninit::write returns &mut T so I think this can be let destination = destination.write(None);

@fitzgen fitzgen enabled auto-merge October 7, 2024 18:58
@fitzgen fitzgen added this pull request to the merge queue Oct 7, 2024
Merged via the queue into bytecodealliance:main with commit 818966f Oct 7, 2024
39 checks passed
@fitzgen fitzgen deleted the array-copy branch October 7, 2024 19:23
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