[CP] Clear watcher subscriptions to avoid leaking package:watcher data #52791
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-merged
Cherry-pick has been merged to the stable or beta branch.
cherry-pick-review
Issue that need cherry pick triage to approve
merge-to-stable
Commit(s) to merge
5aee0f6
Target
stable
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/311466
Issue Description
Prior to this fix, there is a fairly significant memory leak in the Dart analyzer that increases used memory when edits to a pubspec.yaml file are made. This fix closes the leak.
What is the fix
The fix is to cancel subscriptions more aggresively.
Why cherry-pick
This memory leak represents a big area of complaint for existing users.
Risk
low
Issue link(s)
#52447
Extra Info
No response
The text was updated successfully, but these errors were encountered: