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

Add JVM article on premature finalisation #114

Merged

Conversation

jacob-hughes
Copy link
Contributor

Turns out this is still a real problem in Java.

They provide a method (like C#'s keepAlive API) for telling the collector that an object is still reachable by the mutator [1].

[1] https://docs.oracle.com/javase/9/docs/api/java/lang/ref/Reference.html#reachabilityFence-java.lang.Object-

@ltratt
Copy link
Member

ltratt commented Oct 8, 2024

Excellent!

@ltratt ltratt added this pull request to the merge queue Oct 8, 2024
Merged via the queue into softdevteam:master with commit 3e91aa2 Oct 8, 2024
2 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.

2 participants