Skip to content

Implement WeakRef#2431

Merged
gbrail merged 2 commits into
mozilla:masterfrom
gbrail:greg-weak-ref
Jun 29, 2026
Merged

Implement WeakRef#2431
gbrail merged 2 commits into
mozilla:masterfrom
gbrail:greg-weak-ref

Conversation

@gbrail

@gbrail gbrail commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Implement WeakRef. We have another PR for this but I wanted to get this done
one feature at a time.

When this is done I will use the work already done in
#2058
to implement FinalizationRegistry, although I would like to adapt that a bit since
I think that the cleanup callbacks need to run in a different way.

@gbrail

gbrail commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator Author

And to be clear about that previous PR, I plan to start with the commit by @anivar so that he also gets credit in the commit log.

@andreabergia andreabergia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks nice and simple!

@gbrail

gbrail commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator Author

Yes, there is not too much to this one. Thanks!

@gbrail gbrail merged commit be85359 into mozilla:master Jun 29, 2026
12 checks passed
@gbrail gbrail deleted the greg-weak-ref branch June 29, 2026 03:58
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