Skip to content

[CP] Clear watcher subscriptions to avoid leaking package:watcher data #52791

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
srawlins opened this issue Jun 26, 2023 · 3 comments
Closed
Assignees
Labels
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 legacy-area-analyzer Use area-devexp instead. merge-to-stable

Comments

@srawlins
Copy link
Member

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

@srawlins srawlins added the cherry-pick-review Issue that need cherry pick triage to approve label Jun 26, 2023
@a-siva a-siva added the legacy-area-analyzer Use area-devexp instead. label Jul 5, 2023
@srawlins
Copy link
Member Author

How we doin?

@mit-mit
Copy link
Member

mit-mit commented Jul 10, 2023

SGTM

@itsjustkevin itsjustkevin added cherry-pick-approved Label for approved cherrypick request merge-to-stable labels Jul 10, 2023
@srawlins
Copy link
Member Author

Thanks much!

@itsjustkevin itsjustkevin added the cherry-pick-merged Cherry-pick has been merged to the stable or beta branch. label Jul 13, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
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 legacy-area-analyzer Use area-devexp instead. merge-to-stable
Projects
None yet
Development

No branches or pull requests

7 participants