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

Adapting stack overhead limit for gcc 4.9 #3097

Merged
merged 2 commits into from Jan 15, 2018
Merged

Conversation

sithhell
Copy link
Member

Partially Fixes #3044

Proposed Changes

This patch adapts the compile time constant for the stack overhead for gcc 4.9.
This unbreaks the thread_stacksize test.

Any background context you want to provide?

HPX tasks are suspect to stack overflows. Currently, the thread_stacksize test fails with a segfault. It is trying to touch all bytes in the stack. It relies on the HPX_THREADS_STACK_OVERHEAD define to have a sensible value. This value was to small for gcc 4.9.

This patch adapts the compile time constant for the stack overhead for gcc 4.9.
This unbreaks the thread_stacksize test.
@sithhell sithhell added type: defect category: actions difficulty: easy Good issues for starting out with HPX development compiler: gcc labels Jan 12, 2018
@sithhell sithhell added this to the 1.1.0 milestone Jan 12, 2018
Copy link
Member

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

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

We should extract all of the related macros into a separate file. Things get more and more unwieldy in config.hpp. Could you do that, please?

@sithhell
Copy link
Member Author

The thread stack specific config has been factored out.

Copy link
Member

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

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

LGTM now, thanks a lot!

@msimberg msimberg merged commit 9dfa352 into master Jan 15, 2018
@hkaiser hkaiser deleted the fix_stack_overhead branch January 15, 2018 15:20
@msimberg msimberg mentioned this pull request Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: actions compiler: gcc difficulty: easy Good issues for starting out with HPX development type: defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants