-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
fix pthread-based tls on apple targets #137897
Conversation
This PR modifies cc @jieyouxu |
This comment has been minimized.
This comment has been minimized.
r? libs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a libs reviewer, only looked at the test changes
Re-rolling a libs reviewer since you may be busy, but feel free to take review back. |
This seems fine to me but ironically on apple targets, pthread keys are faster than static TLS (try a simple benchmark some time), so the PR title is wrong. r=me once you're happy with it. |
This comment has been minimized.
This comment has been minimized.
So I tried a simple benchmark, and I can't say that pthread keys are faster. The "fancy" target has This is on Maybe my test is wrong? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test looks fine to me. Since there might be some more apple perf discussions, I'll hand this review back.
r? @thomcc |
r? @Noratrieb |
@bors r=thomcc,jieyouxu |
Rollup of 11 pull requests Successful merges: - rust-lang#136457 (Expose algebraic floating point intrinsics) - rust-lang#137880 (Autodiff batching) - rust-lang#137897 (fix pthread-based tls on apple targets) - rust-lang#138024 (Allow optimizing out `panic_bounds_check` in Unicode checks.) - rust-lang#138546 (Add integer to string formatting tests) - rust-lang#138826 (StableMIR: Add `associated_items`.) - rust-lang#138950 (replace extra_filename with strict version hash in metrics file names) - rust-lang#139274 (Rustdoc: typecheck settings.js) - rust-lang#139285 (use lower case to match other error messages) - rust-lang#139341 (Apply `Recovery::Forbidden` when reparsing pasted macro fragments.) - rust-lang#139389 (make `Arguments::as_statically_known_str` doc(hidden)) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#137897 - xTachyon:tls-fix, r=thomcc,jieyouxu fix pthread-based tls on apple targets Tries to fix rust-lang#127773.
Tries to fix #127773.