diff options
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r-- | nptl/allocatestack.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index 4b5af82f06..33fbbaa850 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -618,6 +618,10 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, pd->guardsize = guardsize; } + /* The pthread_getattr_np() calls need to get passed the size + requested in the attribute, regardless of how large the + actually used guardsize is. */ + pd->reported_guardsize = guardsize; } #ifndef __ASSUME_CLONE_STOPPED |