Further locking optimizations for the retrieval of non-singleton beans [SPR-12250] #16864
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
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
The text was updated successfully, but these errors were encountered: