Skip to content

Remove synchronization around filteredPropertyDescriptorsCache in case of non-existing entry [SPR-12106] #16722

Closed

Description

@spring-projects-issues

Craig opened SPR-12106 and commented

AbstractAutowireCapableBeanFactory.filterPropertyDescriptorsForDependencyCheck synchronizes on filteredPropertyDescriptorsCache.

filteredPropertyDescriptorsCache is a ConcurrentHashMap, so such synchronization is not necessary.

Removing the lock would improve concurrency.


Affects: 4.1 RC2

Issue Links:

Referenced from: commits 8eac870

Activity

  1. spring-projects-issues commented on Aug 20, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Craig commented

    #630

  2. spring-projects-issues commented on Aug 21, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    That synchronized block was only hit in case of a non-existing entry... But good point, even then it's not strictly necessary since the PropertyDescriptor array doesn't need to be unique. Revised for 4.1 GA now.

    Juergen

  3. added
    type: enhancement
    in: core
    on Jan 11, 2019
  4. added this to the 4.1 GA milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions