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

cache: always release ref when getting size in usage. #3851

Merged
merged 1 commit into from
May 8, 2023

Conversation

sipsma
Copy link
Collaborator

@sipsma sipsma commented May 8, 2023

Noticed a few cache refs leaked occasionally during long running tests. Debugged by changing immutableRef and mutableRef to store the stack trace of the caller when they are created, saw that it leaked on the lines fixed here.

I considered whether we should leave the stack traces in those data structures but I saw it was taking up a ton of memory, so probably best for local debugging only for now cc @tonistiigi

Signed-off-by: Erik Sipsma <erik@sipsma.dev>
@sipsma sipsma requested a review from tonistiigi May 8, 2023 16:26
@sipsma sipsma merged commit 9122e57 into moby:master May 8, 2023
55 checks passed
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.

None yet

3 participants