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

osal Integration candidate: Caelum-rc4+dev66 #1434

Merged
merged 3 commits into from
Dec 12, 2023
Merged

Conversation

dzbaker
Copy link
Collaborator

@dzbaker dzbaker commented Dec 12, 2023

Checklist (Please check before submitting)

Describe the contribution

Testing performed
cFS Bundle Checks
osal Checks

Expected behavior changes
See PRs

System(s) tested on
Ubuntu 20.04

Additional context
Add any other context about the contribution here.

Third party code
If included, identify any third party code and provide text file of license

Contributor Info - All information REQUIRED for consideration of pull request
@jphickey

jphickey and others added 3 commits December 1, 2023 13:28
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.
Fix #1429, adjust pthread stack to account for TCB+TLS
*/
#ifndef PTHREAD_STACK_MIN
#define PTHREAD_STACK_MIN (8 * 1024)
#ifdef PTHREAD_STACK_MIN

Check notice

Code scanning / CodeQL

Conditional compilation Note

Use of conditional compilation must be kept to a minimum.
@dzbaker dzbaker merged commit 1a8823f into main Dec 12, 2023
32 of 33 checks passed
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.

2 participants