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

Nullify unused result in async transform #10783

Draft
wants to merge 1 commit into
base: 2.13.x
Choose a base branch
from

Conversation

som-snytt
Copy link
Contributor

Fixes scala/scala-async#265

Needs more soak time and a test. The idea is that if the incoming awaited value is not consumed, the synthetic reference to it will be a statement in the block. The val for the value is made mutable, so that the reference can be turned into an assign to null.

@scala-jenkins scala-jenkins added this to the 2.13.15 milestone May 21, 2024
@som-snytt som-snytt force-pushed the issue/async-265-leak branch from d92d257 to 76d46ee Compare May 21, 2024 01:22
@SethTisue SethTisue modified the milestones: 2.13.15, 2.13.16 Aug 14, 2024
@som-snytt som-snytt closed this Sep 11, 2024
@SethTisue SethTisue removed this from the 2.13.16 milestone Nov 5, 2024
@som-snytt som-snytt reopened this Nov 9, 2024
@scala-jenkins scala-jenkins added this to the 2.13.16 milestone Nov 9, 2024
@SethTisue SethTisue modified the milestones: 2.13.16, 2.13.17 Dec 12, 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.

Is async macro leaking?
3 participants