Skip to content

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
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