Skip to content
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

GH-2730: Avoid I/O in synchronized Blocks #2792

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

garyrussell
Copy link
Contributor

Resolves #2730

Use ReentrantLocks when I/O is possible to avoid unnecessary virtual thread pinning. Synchronized blocks to protect update to shared fields are ok.

Resolves spring-projects#2730

Use `ReentrantLock`s when I/O is possible to avoid unnecessary virtual
thread pinning. Synchronized blocks to protect update to shared fields
are ok.
@artembilan artembilan merged commit a878102 into spring-projects:main Aug 31, 2023
1 check passed
@garyrussell garyrussell deleted the GH-2730 branch August 31, 2023 20:27
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.

Examine synchronized Blocks
2 participants