-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[illumos] add pthread stack functions #3788
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
Oh I guess I should target the 0.2 branch. Just a sec |
☔ The latest upstream changes made this pull request unmergeable. Please resolve the merge conflicts. |
61ab892
to
947ceb5
Compare
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 tests are passing on illumos with this change included.
Uses the same logic as FreeBSD and DragonflyBSD. This does require a version of libc with rust-lang/libc#3788 included. Hopefully that goes out soon. For now I'm putting up this PR as a thing to point to. I've verified locally on an illumos machine that stacker is able to: * find the right stack size, and * create new stack segments.
Could you add an There are probably other functions that should be added once the file exists, but those can come separately. |
Also, can you target |
Thanks @tgross35! Can do both of those things. (I wasn't sure about main vs 0.2, is there documentation somewhere about that? Sorry if I missed it.) |
The README actually does suggest targeting 0.2, so you correctly did what is documented. I just intend to change that so we always update The |
947ceb5
to
3724a2f
Compare
That makes sense! (Landing on main first and then cherry-picking is also the flow I personally recommend to folks :) ) Anyway, updated the PR. (Sorry about the rustbot ping, should have updated the base first.) |
3724a2f
to
80d43bf
Compare
Thanks for the changes! Feel free to submit a cherry-pick PR yourself once this merges (updated instructions coming here #3804), otherwise I will be doing a batch of them at some point. |
Uses the same logic as FreeBSD and DragonflyBSD. This does require a version of libc with rust-lang/libc#3788 included. Hopefully that goes out soon. For now I'm putting up this PR as a thing to point to. I've verified locally on an illumos machine that stacker is able to: * find the right stack size, and * create new stack segments.
Uses the same logic as FreeBSD and DragonflyBSD. This does require a version of libc with rust-lang/libc#3788 included. Hopefully that goes out soon. For now I'm putting up this PR as a thing to point to. I've verified locally on an illumos machine that stacker is able to: * find the right stack size, and * create new stack segments.
The goal of this change is to make the following improvements possible:
Add some pthread stack functions:
pthread_attr_get_np
pthread_attr_getstackaddr
pthread_attr_setstack
pthread_attr_setstackaddr
I've verified that these functions exist and do the right thing.
Note that there doesn't appear to be a file like
linux.txt
for illumos specifically.Another note:
cd libc-test && cargo test
currently fails on illumos with:But it also fails on main with the same error, so this isn't a regression.