Skip to content

Fix memory leaks in gradle daemon#1198

Merged
nedtwigg merged 9 commits intodiffplug:mainfrom
nedtwigg:main
May 10, 2022
Merged

Fix memory leaks in gradle daemon#1198
nedtwigg merged 9 commits intodiffplug:mainfrom
nedtwigg:main

Conversation

@nedtwigg
Copy link
Copy Markdown
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