-
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
use new interface to create threads on HermitCore #71591
Conversation
stlankes
commented
Apr 26, 2020
- the new interface allows to define the stack size
- increase the default stack size to 1 MByte
- the new interface allows to define the stack size
(rust_highfive has picked a reviewer for you, use r? to override) |
src/libstd/sys/hermit/thread.rs
Outdated
@@ -16,25 +16,24 @@ pub struct Thread { | |||
unsafe impl Send for Thread {} | |||
unsafe impl Sync for Thread {} | |||
|
|||
pub const DEFAULT_MIN_STACK_SIZE: usize = 262144; | |||
pub const DEFAULT_MIN_STACK_SIZE: usize = 1_048_576; |
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.
pub const DEFAULT_MIN_STACK_SIZE: usize = 1_048_576; | |
pub const DEFAULT_MIN_STACK_SIZE: usize = 1 << 20; |
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.
You are right. Ich changed the line.
@hanna-kruppe waiting for your review on this :) |
@bors r+ |
📌 Commit 2c43746 has been approved by |
…ruppe use new interface to create threads on HermitCore - the new interface allows to define the stack size - increase the default stack size to 1 MByte
Rollup of 7 pull requests Successful merges: - rust-lang#71269 (Define UB in float-to-int casts to saturate) - rust-lang#71591 (use new interface to create threads on HermitCore) - rust-lang#71819 (x.py: Give a more helpful error message if curl isn't installed) - rust-lang#71893 (Use the `impls` module to import pre-existing dataflow analyses) - rust-lang#71929 (Use -fvisibility=hidden for libunwind) - rust-lang#71937 (Ignore SGX on a few ui tests) - rust-lang#71944 (Add comment for `Ord` implementation for array) Failed merges: r? @ghost