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

Refactor OkHttpCall to use CAS instead of synchronized (#4297) #4301

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

qwexter
Copy link

@qwexter qwexter commented Feb 24, 2025

Replace synchronized blocks with atomic compare-and-swap logic.
It prevent virtual thread pinning and reduce contention.
See #4297 for more details.


  • CHANGELOG.md's "Unreleased" section has been updated, if applicable.

@qwexter qwexter marked this pull request as ready for review February 28, 2025 07:38
Replace synchronized blocks with atomic compare-and-swap logic. It prevent virtual thread pinning and reduce contention.
See square#4297 for more details.
@qwexter qwexter force-pushed the refactorOkHttpCallToUseCAS branch from 86cde28 to 91b4ebf Compare February 28, 2025 12:09
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.

1 participant