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

Fix GC visitation in stream readers and writers #1606

Merged
merged 2 commits into from
Feb 2, 2024

Conversation

kentonv
Copy link
Member

@kentonv kentonv commented Feb 1, 2024

Fixes a memory leak in certain uses of streams.

This is a simpler version of #1598. I was able to directly fix the problem that the WeakRef refactor also solved.

@kentonv kentonv requested a review from jasnell February 1, 2024 22:18
@kentonv kentonv requested review from a team as code owners February 1, 2024 22:18
@kentonv kentonv requested a review from harrishancock February 1, 2024 22:18
@kentonv kentonv force-pushed the kenton/streams-gc-visit-fix branch from d01aff1 to 1ad3252 Compare February 1, 2024 23:01
@kentonv
Copy link
Member Author

kentonv commented Feb 1, 2024

Missed some instances of the teardown bug, discovered when I ran more tests. Updated.

@kentonv kentonv merged commit 3cc6a42 into main Feb 2, 2024
11 checks passed
@kentonv kentonv deleted the kenton/streams-gc-visit-fix branch February 2, 2024 00:57
kentonv added a commit that referenced this pull request Feb 5, 2024
kentonv added a commit that referenced this pull request Feb 6, 2024
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