Skip to content

Refactor concurrency within DefaultSingletonBeanRegistry #1745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Refactor concurrency within DefaultSingletonBeanRegistry #1745

wants to merge 1 commit into from

Conversation

lmagyar89
Copy link

Issue: SPR-16620

….DefaultSingletonBeanRegistry

Issue: SPR-16620
@jhoeller
Copy link
Contributor

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

@bnbakp0582
Copy link
Contributor

bnbakp0582 commented Jul 8, 2023

image

Can anyone tell me the reason for adding synchronized here?

@sbrannen sbrannen changed the title Refactor concurrency within org.springframework.beans.factory.support.DefaultSingletonBeanRegistry Refactor concurrency within DefaultSingletonBeanRegistry Jul 9, 2023
@sbrannen
Copy link
Member

sbrannen commented Jul 9, 2023

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.

@bnbakp0582
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants