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

Performance: Using ReentrantLock instead of synchronized #1299

Merged
merged 1 commit into from
Jan 1, 2025

Conversation

mkarg
Copy link
Contributor

@mkarg mkarg commented Dec 22, 2024

It is common sense that synchronized should only be used if essentially needed, as in most scenarios ReentrantLock is more efficient.

Requesting fast-track according to our Committer Conventions, as this PR is a non-API, non-spec, non-javadoc change.

@mkarg mkarg self-assigned this Dec 22, 2024
@mkarg mkarg requested a review from a team December 23, 2024 12:38
@mkarg mkarg merged commit 3e8d957 into jakartaee:main Jan 1, 2025
3 checks passed
@mkarg mkarg deleted the lock-vs-synchronized branch January 1, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants