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

Remove unnecessary inline hints causing bloated stack size (and in turn overflowing the stack) in downstream crates #748

Merged

Conversation

mitchmindtree
Copy link
Contributor

I've run into several stack overflows using conrod over the past couple of days, only when compiling in release. When instantiating many widgets (i.e. via helper macros), the large amount of inlining lead to a huge stack size that overflowed the designated 8mb stack on my OS X release build. This fixes the problem and hasn't caused any noticeable difference in performance. It seems that in this case, it's best to let LLVM automatically infer what cases are best for inlining. Perhaps it uses some sort of main-thread stack size consideration when deciding upon what to inline?

@mitchmindtree
Copy link
Contributor Author

Travis seems to be failing due to an ICE on nightly (either this or this), however is building without issues on stable and beta.

@mitchmindtree
Copy link
Contributor Author

Published as 0.37.2.

@mitchmindtree mitchmindtree merged commit d1bdcda into PistonDevelopers:master Jul 16, 2016
@mitchmindtree mitchmindtree deleted the remove_inline_hints branch July 31, 2016 06:56
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.

1 participant