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: the maximum stack size is 16 MB #61683

Merged
merged 1 commit into from
Jun 10, 2019
Merged

Conversation

nielx
Copy link
Contributor

@nielx nielx commented Jun 9, 2019

This keeps the compiler from crashing every time it is invoked. No functional change on other platforms.

This patch is similar to the limitation that is in the librustdoc/lib.rs.

@rust-highfive
Copy link
Collaborator

r? @eddyb

(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 Jun 9, 2019
@Centril
Copy link
Contributor

Centril commented Jun 10, 2019

r? @nagisa

@rust-highfive rust-highfive assigned nagisa and unassigned eddyb Jun 10, 2019
@nagisa
Copy link
Member

nagisa commented Jun 10, 2019

Could the commit message have more information on the crash (such as where this limitation comes from, how the the crash manifests itself) so that it can be traced back to something when looking at the line?

@Centril Centril added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 10, 2019
When one tries to create a thread with a requested stack size larger
than 16 MB, the call will fail and the compiler will bail out. Therefore
we should limit the size of the thread stack to 16 MB on Haiku.
@nielx
Copy link
Contributor Author

nielx commented Jun 10, 2019

@nagisa I updated the log message. Does this make it clear?

@nagisa
Copy link
Member

nagisa commented Jun 10, 2019

@bors r+

@bors
Copy link
Contributor

bors commented Jun 10, 2019

📌 Commit 56a7f1e has been approved by nagisa

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 10, 2019
Centril added a commit to Centril/rust that referenced this pull request Jun 10, 2019
Haiku: the maximum stack size is 16 MB

This keeps the compiler from crashing every time it is invoked. No functional change on other platforms.

This patch is similar to the limitation that is in the [librustdoc/lib.rs](https://github.com/rust-lang/rust/blob/57e13e0325c1d41161a31de1f8520538ec2c575c/src/librustdoc/lib.rs#L89).
bors added a commit that referenced this pull request Jun 10, 2019
Rollup of 5 pull requests

Successful merges:

 - #59600 (Replaced linear token counting macros with optimized implementation)
 - #61501 (get rid of real_intrinsics module)
 - #61570 (Fix issues with const argument inference)
 - #61683 (Haiku: the maximum stack size is 16 MB)
 - #61697 (submodules: update clippy from 71be6f6 to c0dbd34)

Failed merges:

r? @ghost
@bors bors merged commit 56a7f1e into rust-lang:master Jun 10, 2019
@nielx nielx deleted the haiku-stack-limit branch June 13, 2019 07:45
@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.

7 participants