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

WeakLockFreeCache not clean up weak keys when computeIfAbsent #6230

Closed
danielqsj opened this issue Jun 28, 2022 · 0 comments · Fixed by #6235
Closed

WeakLockFreeCache not clean up weak keys when computeIfAbsent #6230

danielqsj opened this issue Jun 28, 2022 · 0 comments · Fixed by #6235
Labels
bug Something isn't working

Comments

@danielqsj
Copy link

danielqsj commented Jun 28, 2022

Describe the bug
As this PR #5316 described, WeakLockFreeCache.computeIfAbsent() relay on the expungeStaleEntries() to clean up weak keys.
After this PR #5344, It seems WeakLockFreeCache.computeIfAbsent() cannot clean up anymore.

Steps to reproduce

What did you expect to see?

What did you see instead?

What version are you using?
v1.11.0

Environment
Compiler: (e.g., "AdoptOpenJDK 11.0.6")
OS: (e.g., "Ubuntu 20.04")
Runtime (if different from JDK above): (e.g., "Oracle JRE 8u251")
OS (if different from OS compiled on): (e.g., "Windows Server 2019")

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant