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

Deprecated ThreadHints. #312

Merged

Conversation

pveentjer
Copy link
Contributor

@pveentjer pveentjer commented Jan 14, 2025

The ThreadHints class was added for to compatibility reasons with JDKs earlier than JDK 9.

Since Agrona relies on JDK 17 as minimal version, the compatibility isn't required any longer and all calls to ThreadHints.onSpinWait have been replaced by direct calls to Thread.onSpinWait.

Using Thread.onSpinWait directly.
@vyazelenko vyazelenko merged commit 2e52a79 into real-logic:master Jan 14, 2025
14 checks passed
@pveentjer pveentjer deleted the cleanup/ThreadHints-deprecation branch January 14, 2025 13:14
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.

2 participants