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

[CP] Plug "temporary leak" when starting new rebuilds before afterContextsCreated is called #52792

Closed
srawlins opened this issue Jun 26, 2023 · 1 comment
Assignees
Labels
cherry-pick-review Issue that need cherry pick triage to approve

Comments

@srawlins
Copy link
Member

Commit(s) to merge

5e08794

Target

stable

Prepared changelist for beta/stable

https://dart-review.googlesource.com/c/sdk/+/311520

Issue Description

There is an intermittent ("temporary") memory leak that occurs when the Dart analyzer is rebuilding an "analysis context" (basically any time a pubspec is edited). This CL closes the leak.

What is the fix

The fix is to discard contexts more aggresively.

Why cherry-pick

This issue is a top complaint for users of the analyzer.

Risk

low

Issue link(s)

#52447

Extra Info

No response

@srawlins srawlins added the cherry-pick-review Issue that need cherry pick triage to approve label Jun 26, 2023
@srawlins
Copy link
Member Author

Canceling this cherry-pick; I noticed too late that there is a sizeable merge conflict. Cherry-picking this would, in effect, be writing up a new fix to different files. It is very uncomfortable.

Given that risk, and that this solves a "temporary leak," and that the fix will be released soon in Dart 3.1 anyhow, I'm canceling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-review Issue that need cherry pick triage to approve
Projects
None yet
Development

No branches or pull requests

6 participants