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 memory leaks in gradle daemon #1198

Merged
merged 9 commits into from
May 10, 2022
Merged

Fix memory leaks in gradle daemon #1198

merged 9 commits into from
May 10, 2022

Conversation

nedtwigg
Copy link
Member

@nedtwigg nedtwigg commented May 6, 2022

It's common for LazyForwardingEquality to store some reference to the Gradle project in its initializing lambda, but the lambda is not used / needed once it has been run. By setting the initializing lambda to null in the calculateState method, we make it possible for the Gradle daemon to do a more complete GC.

Fixes (or at least improves) #1194.

@nedtwigg nedtwigg enabled auto-merge May 9, 2022 04:24
@nedtwigg nedtwigg merged commit 49099f3 into diffplug:main May 10, 2022
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.

1 participant