mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
htl: Fix default guard size
When it is not hardcoded by the architecture with PAGESIZE, we need to use the dynamic values from __vm_page_size.
This commit is contained in:
parent
74159dc58a
commit
34f168fb82
@ -304,7 +304,7 @@ extern error_t __pthread_sigstate (struct __pthread *__restrict thread, int how,
|
||||
|
||||
|
||||
/* Default thread attributes. */
|
||||
extern const struct __pthread_attr __pthread_default_attr;
|
||||
extern struct __pthread_attr __pthread_default_attr;
|
||||
|
||||
/* Default barrier attributes. */
|
||||
extern const struct __pthread_barrierattr __pthread_default_barrierattr;
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
#include <pt-internal.h>
|
||||
|
||||
const struct __pthread_attr __pthread_default_attr = {
|
||||
struct __pthread_attr __pthread_default_attr = {
|
||||
__schedparam: { sched_priority: 0 },
|
||||
__stacksize: 0,
|
||||
__stackaddr: NULL,
|
||||
|
@ -78,6 +78,10 @@ _init_routine (void *stack)
|
||||
valid if the main thread terminates. */
|
||||
thread->stack = 0;
|
||||
|
||||
#ifndef PAGESIZE
|
||||
__pthread_default_attr.__guardsize = __vm_page_size;
|
||||
#endif
|
||||
|
||||
___pthread_self = thread;
|
||||
|
||||
/* Decrease the number of threads, to take into account that the
|
||||
|
Loading…
Reference in New Issue
Block a user