Skip to content

Conversation

@shanshin
Copy link
Contributor

ClassValue can transitively refer to an instance of type java.lang.Class, so this may prevent the loader from being collected during garbage collection.

Using SoftReference over the value should solve this problem.

ClassValue can transitively refer to an instance of type java.lang.Class, so this may prevent the loader from being collected during garbage collection.

Using SoftReference over the value should solve this problem.
@shanshin shanshin requested a review from sandwwraith February 6, 2023 13:01
@shanshin shanshin merged commit b454f34 into dev Feb 6, 2023
@shanshin shanshin deleted the soft-ref branch February 6, 2023 14:04
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.

3 participants