8000 Fix memory leak in Concurrent/ThreadSafeLocalContextProvider, using Cleaner API for JRuby 10 by matthias-fratz-bsz · Pull Request #8561 · jruby/jruby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix memory leak in Concurrent/ThreadSafeLocalContextProvider, using Cleaner API for JRuby 10 #8561

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

Open
wants to merge 1 commit into
base: 10-dev
Choose a base branch
from

Conversation

matthias-fratz-bsz
Copy link

JRuby 10 requires Java 21+, so it has access to the Cleaner API. Tested to still get rid of the memory leak demonstrated by the test case in #8422 .

Uses the Cleaner API to run LocalContext.remove() when a Thread has
terminated, but also eagerly calls all LocalContext.remove() on
terminate().
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.

2 participants
0