Skip to content

Properly manage ownership of GC refs in passive element segments#13183

Merged
cfallin merged 1 commit intobytecodealliance:mainfrom
alexcrichton:reland-patch
Apr 23, 2026
Merged

Properly manage ownership of GC refs in passive element segments#13183
cfallin merged 1 commit intobytecodealliance:mainfrom
alexcrichton:reland-patch

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

Re-land #13179 after a seeming github bug reverted it during the landing of #13180

…ecodealliance#13179)

* Properly manage ownership of GC refs in passive element segments

We need to `clone_gc_ref` when pushing into the segment and `drop_gc_ref` when
clearing the segment, similar to what we do for e.g. setting
`VMGlobalDefinition`s.

Fixes bytecodealliance#13066

* fix cfg warnings

* fix cfg_attr

* remove cfg_attr
@alexcrichton alexcrichton requested a review from a team as a code owner April 23, 2026 21:00
@alexcrichton alexcrichton requested review from dicej and removed request for a team April 23, 2026 21:00
Copy link
Copy Markdown
Member

@cfallin cfallin left a comment

Choose a reason for hiding this comment

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

Let's hope that the mercurial distributed system gods don't eat this one, too...

@cfallin cfallin added this pull request to the merge queue Apr 23, 2026
Merged via the queue into bytecodealliance:main with commit 599d821 Apr 23, 2026
48 checks passed
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.

3 participants