mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
(allocate_stack): Use __getpagesize instead of __sysconf to determine pagesize.
This commit is contained in:
@ -227,7 +227,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
|
||||
{
|
||||
struct pthread *pd;
|
||||
size_t size;
|
||||
size_t pagesize_m1 = __sysconf (_SC_PAGESIZE) - 1;
|
||||
size_t pagesize_m1 = __getpagesize () - 1;
|
||||
|
||||
assert (attr != NULL);
|
||||
assert (powerof2 (pagesize_m1 + 1));
|
||||
|
Reference in New Issue
Block a user