Skip to content

Synchronized blocks in MethodOverrides are hurting concurrency #23448

Closed
@kennymacleod

Description

@kennymacleod

Affects: 5.1.x, 4.3.x


The fix for issue #18905 introduced synchronized blocks into the MethodOverrides class to fix a race condition. While this fixed the original bug, the introduction of the synchronized blocks is really hurting the concurrency of our application. We make use of method injection in a hot spot in our application, which has very high request concurrency. All of those requests go through MethodOverrides, and through these synchronized blocks. While the individual operations are fairly quick, it's still significant enough to cause serious concurrency degradation.

Can this class be reworked to avoid synchronized blocks?

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions