-
Notifications
You must be signed in to change notification settings - Fork 13.3k
native::start should get a more accurate estimate of the stack bounds #11359
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
Comments
On linux (and possibly other related unices), we can use |
|
The stack size of the main thread is still estimated in std::rt, so I think the issue remains relevant. |
reopening: the code in question is still just guessing, AFAICT, and appears to be triggering an overflow (or underflow) panic on the branch with arithmetic overflow checking: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/3910/steps/test/logs/stdio |
Triage: the FIXME comment is now gone, and I don't know the internals well enough to determine if this is something that's still relevant. I think the removal of morestack would have made this go away? |
Ah yeah this is long since gone |
…gestion, r=dswij Check that the suggested method exists in unwrap_or_default Fixes rust-lang#11355 changelog: none
It currently just assumes that it's always 2MB.
This logic was added by #11360.
The text was updated successfully, but these errors were encountered: