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

Support Thread.onSpinWait #39

Open
aoli-al opened this issue Sep 24, 2024 · 0 comments
Open

Support Thread.onSpinWait #39

aoli-al opened this issue Sep 24, 2024 · 0 comments
Labels
question Further information is requested

Comments

@aoli-al
Copy link
Member

aoli-al commented Sep 24, 2024

Do we want to support Thread.onSpinWait? This operation allows the thread to block a bit until a signal is received. In most cases, this operation is used as an optimization and will always fallback to a timed operation later.

Here is an example: https://github.com/corretto/corretto-21/blob/f96d2d8b681a14c5ce0b89d719fd5b2deda4249a/src/java.base/share/classes/java/util/concurrent/LinkedTransferQueue.java#L435

Is there any case Fray will introduce a false positive if we do not support this operation?

@aoli-al aoli-al added the question Further information is requested label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant