Skip to content

Simplify CachedIntrospectionResults caching arrangements [SPR-10028] #14662

Closed

Description

@spring-projects-issues

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

Activity

  1. spring-projects-issues commented on Nov 25, 2012

    @spring-projects-issues
    CollaboratorAuthor

    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

Metadata

Metadata

Assignees

Labels

type: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions