-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Possibility to add default reference type in inner use of ConcurrentReferenceHashMap (ResolvableType) #25028
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
Comments
The problem with the reference types is that ´weak´ does not necessarily make sense in such places since the key is not held on to, like in If your problem is with specific internal caches there, could you elaborate on the specifics that you're seeing? Could you maybe call |
Hello, is it possible to make the field Apart of the Thanks! |
Closing as a duplicate of #23284 (comment) |
In the context of our framework, we come across a metaspace issue due to the use of soft references in ConcurrentReferenceHashMap by default.
That default can be set in the constructor but there are are some inner uses of that class relies on the default soft reference type.
For example:
ResolvableType
Can a change be performed to provide a way to set the reference types in this cases this without using reflection? Passing the reference type to ResolvableType for example.
Thanks!
The text was updated successfully, but these errors were encountered: