Skip to content

std::rt: require known stack bounds for all tasks. #11360

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

Merged
merged 1 commit into from
Jan 10, 2014

Conversation

huonw
Copy link
Member

@huonw huonw commented Jan 7, 2014

We just approximate with a 2MB stack for native::start.

@alexcrichton
Copy link
Member

This looks good to me, nice work!

I'd like to run this by @brson before r+'ing, however

We just approximate with a 1 or 2 MB stack for native::start.
#[cfg(android)]
static OS_DEFAULT_STACK_ESTIMATE: uint = 1 << 20;
#[cfg(unix, not(android))]
static OS_DEFAULT_STACK_ESTIMATE: uint = 2 * (1 << 20);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brson fixed; some googling indicates that Android has a 1 MB stack by default too.

bors added a commit that referenced this pull request Jan 10, 2014
We just approximate with a 2MB stack for native::start.
@bors bors closed this Jan 10, 2014
@bors bors merged commit 65ce505 into rust-lang:master Jan 10, 2014
@huonw huonw deleted the stack_bounds branch June 27, 2014 06:48
flip1995 pushed a commit to flip1995/rust that referenced this pull request Sep 7, 2023
[`iter_overeager_cloned`]: detect .cloned().all() and .cloned().any()

changelog: [`iter_overeager_cloned`]

r? `@blyxyas`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants