-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Use futex based thread parker on Fuchsia. #96768
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
r? @kennytm (rust-highfive has picked a reviewer for you, use r? to override) |
This is completely untested! @tmandry I believe you're the person I should contact for Fuchsia? Can you test this? |
Triage: |
@rustbot ping fuchsia |
Hey friends of Fuchsia! This issue could use some guidance on how this should be |
Sorry that this got lost before. We actually would like to avoid using raw futexes on Fuchsia because it loses priority inheritance information. There are a few options:
|
All those options seem fine to me. Happy to review a PR for any of those options. I'll update this PR to only switch thread parking to a futex on Fuchsia, and leave the locks untouched for now. |
Updated. @tmandry can you test it? |
I managed to get the std::thread tests running, and they pass. If there are deeper problems, we'll probably find out soon after this lands when we try to bring the new compiler into Fuchsia :) Thanks for working on this! @bors r+ |
📌 Commit ac38258 has been approved by |
Use futex based thread parker on Fuchsia.
Rollup of 10 pull requests Successful merges: - rust-lang#95446 (update CPU usage script) - rust-lang#96768 (Use futex based thread parker on Fuchsia.) - rust-lang#97454 (Add release notes for 1.62) - rust-lang#97516 (clarify how Rust atomics correspond to C++ atomics) - rust-lang#97818 (Point at return expression for RPIT-related error) - rust-lang#97895 (Simplify `likely!` and `unlikely!` macro) - rust-lang#98005 (Add some tests for impossible bounds) - rust-lang#98226 (Document unstable `--extern` options) - rust-lang#98356 (Add missing period) - rust-lang#98363 (remove use of &Alloc in btree tests) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
No description provided.