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

Simplify CachedIntrospectionResults caching arrangements [SPR-10028] #14662

Closed
spring-projects-issues opened this issue Nov 25, 2012 · 1 comment
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Nov 25, 2012

Juergen Hoeller opened SPR-10028 and commented

Spring's CachedIntrospectionResults class traditionally comes with three different modes of static caching, primarily for defensiveness in terms of ClassLoader leaks. These three modes can be simplified to two: basically traditional ClassLoader layouts (with embedded Spring jars within the application) and non-traditional layouts (with the Spring jars higher up the hierarchy or in a different node of the ClassLoader tree altogether).


Issue Links:

Referenced from: commits bed2134, 0ee1256, c368068, 4a8be69

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Previously, CachedIntrospectionResults had three modes of caching, with the intermediate mode relying on WeakReferences in the JDK PropertyDescriptor implementation. Since the JDK is actually using SoftReferences there these days, losing information in case of a GC run with tough memory constraints, we want to allow for hard references in PropertyDescriptor objects and therefore use a full WeakReference for the CachedIntrospectionResults object itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants