Issue: SPR-16620

Comment From: jhoeller

Applied with different tradeoffs but addressing the same concerns. Thanks for raising this!

Comment From: bnbakp0582

Spring Refactor concurrency within DefaultSingletonBeanRegistry

Can anyone tell me the reason for adding synchronized here?

Comment From: sbrannen

Can anyone tell me the reason for adding synchronized here?

@bnbakp0582, this is explained in the linked issue: https://github.com/spring-projects/spring-framework/issues/21161#issuecomment-453469217

In addition, please do not post screenshots of code in issues in this repository.

Comment From: bnbakp0582

Can anyone tell me the reason for adding synchronized here?

@bnbakp0582, this is explained in the linked issue: #21161 (comment)

In addition, please do not post screenshots of code in issues in this repository.

No problem, thank you!