Skip to content

Further locking optimizations for the retrieval of non-singleton beans [SPR-12250] #16864

Closed
@spring-projects-issues

Description

@spring-projects-issues

Juergen Hoeller opened SPR-12250 and commented

The current BeanFactory.getBean algorithm is optimized towards singleton access, always checking the singleton map for a quick check before proceeding with scope handling.

Lock-free access to non-singleton beans is equally important and seems to be easy enough to achieve: through a check on registered singleton names before going into the lock on the singleton map.


Affects: 3.2.11, 4.0.7, 4.1 GA

Issue Links:

Referenced from: commits ac4103d, 9d83281, a1538a4

Backported to: 4.0.8, 3.2.12

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions