store pthread stack guard sizes for pthread_getattr_np
This commit is contained in:
1 parent
b3ae7beabb
commit
7c709f2d4f
3 files changed
+4
-1
No files matched your search
@@ -232,8 +232,8 @@ int __pthread_create(pthread_t *restrict res, const pthread_attr_t *restrict att
|
||||
memset(stack, 0, need);
|
||||
} else {
|
||||
size = ROUND(need);
|
||||
guard = 0;
|
||||
}
|
||||
guard = 0;
|
||||
} else {
|
||||
guard = ROUND(attr._a_guardsize);
|
||||
size = guard + ROUND(attr._a_stacksize
|
||||
@@ -265,6 +265,7 @@ int __pthread_create(pthread_t *restrict res, const pthread_attr_t *restrict att
|
||||
new->map_size = size;
|
||||
new->stack = stack;
|
||||
new->stack_size = stack - stack_limit;
|
||||
new->guard_size = guard;
|
||||
new->start = entry;
|
||||
new->start_arg = arg;
|
||||
new->self = new;
|
||||
|
||||
Reference in new issue
Block a user