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

Haiku: work around the lack of setrlimit #52100

Merged
merged 1 commit into from
Jul 10, 2018

Conversation

nielx
Copy link
Contributor

@nielx nielx commented Jul 6, 2018

The default Unix codepath fails, because Haiku does not implement
setrlimit for stack size. Thus we create an additional path.

By default, Haiku has the desired 16 MB stack, therefore in general
we do not have to spawn a new thread. The code has been written in
such a way that any changes in Haiku or in Rust will be adapted to.

By default, Haiku has the desired 16 MB stack, therefore in general
we do not have to spawn a new thread. The code has been written in
such a way that any changes in Haiku or in Rust will be adapted to.
@rust-highfive
Copy link
Collaborator

r? @cramertj

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 6, 2018
@nielx
Copy link
Contributor Author

nielx commented Jul 6, 2018

@cuviper You were so kind to have a look at my previous patch. Does this one fit the logic better?

@cuviper
Copy link
Member

cuviper commented Jul 6, 2018

Sure, it looks reasonable to me!

@cramertj
Copy link
Member

cramertj commented Jul 9, 2018

@bors r+

@bors
Copy link
Contributor

bors commented Jul 9, 2018

📌 Commit 90e32e2 has been approved by cramertj

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 9, 2018
@bors
Copy link
Contributor

bors commented Jul 10, 2018

⌛ Testing commit 90e32e2 with merge 295858e...

bors added a commit that referenced this pull request Jul 10, 2018
Haiku: work around the lack of setrlimit

The default Unix codepath fails, because Haiku does not implement
setrlimit for stack size. Thus we create an additional path.

By default, Haiku has the desired 16 MB stack, therefore in general
we do not have to spawn a new thread. The code has been written in
such a way that any changes in Haiku or in Rust will be adapted to.
@bors
Copy link
Contributor

bors commented Jul 10, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: cramertj
Pushing 295858e to master...

@bors bors merged commit 90e32e2 into rust-lang:master Jul 10, 2018
@nielx nielx deleted the fix/rust_driver-stacklimit branch July 31, 2018 19:08
@workingjubilee workingjubilee added the O-haiku Target: Be extant; from mouldering old leaves; spring arrives again label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-haiku Target: Be extant; from mouldering old leaves; spring arrives again S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants