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

Fix #1429, adjust pthread stack to account for TCB+TLS #1430

Merged
merged 1 commit into from
Dec 12, 2023

Commits on Dec 1, 2023

  1. Fix nasa#1429, adjust pthread stack to account for TCB+TLS

    The glibc pthread implementation puts additional data structures at the
    base of the stack.  The size of these is not known, but the only thing
    to go by is PTHREAD_MIN_STACK -- which should always be enough to hold
    the required objects.
    
    Instead of simply assuring that the stack is at least PTHREAD_MIN_STACK,
    add this to the requested stack instead.  This in turn will ensure that
    the user always has at least their requested stack size available for
    actual use.
    
    If the pthread implementation does not advertise a PTHREAD_MIN_STACK
    value, then just reserve 1 extra page.
    jphickey committed Dec 1, 2023
    Configuration menu
    Copy the full SHA
    4b68985 View commit details
    Browse the repository at this point in the history