You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AbstractApplicationEventMulticaster#getApplicationListeners() should have double check for 'this.retrieverCache.get(cacheKey)' within synchronized block [SPR-10351] #14985
in: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement
In the multi-threaded publishing events environment AbstractApplicationEventMulticaster#supportsEvent() may be invoked twice (or more) for the same event type: from first Thread, who builds cache entry in the synchronized block, and from second (and so on), who is waiting synchronization monitor.
We opted for a different tradeoff back in Spring Framework 3.2 GA already: We keep the locks as short as possible, accepting the potential for concurrent creation of cache entries in order to optimize for high-load scenarios with a pre-populated cache. Have a look at the latest code there.
in: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement
Activity
spring-projects-issues commentedon Mar 6, 2013
Juergen Hoeller commented
We opted for a different tradeoff back in Spring Framework 3.2 GA already: We keep the locks as short as possible, accepting the potential for concurrent creation of cache entries in order to optimize for high-load scenarios with a pre-populated cache. Have a look at the latest code there.
Juergen
spring-projects-issues commentedon Mar 8, 2013
Artem Bilan commented
Thanks, Juergen, I got it.
Of course, I can live with recreating the same cache entry in the multi-threaded environment, because it is still here.
However, it sounds like
LockRegistrymay have value here: https://jira.springsource.org/browse/INT-2909.WDYT?