This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
+ { + /* The stack is too small (or the guard too large), but this might not + be an error. If we are on a system that supports multiple page + sizes, the current page size may be larger then PTHREAD_STACK_MIN, + but we need to allocate a minimum of two pages for guard and stack. + In this case we can allocate the two page minimum. */ + if ((size >= PTHREAD_STACK_MIN) + && (PTHREAD_STACK_MIN< ((pagesize_m1 + 1) * 2))) + /* The requested size is >= PTHREAD_STACK_MIN, so the application + expect this to work. But PTHREAD_STACK_MIN is < 2 of the + current pages, so bump the stack size up to two pages at the + current page size. */ + size = (pagesize_m1 + 1) * 2; + else + /* Not the large page case so return EINVAL. */ + return EINVAL; + }
-- â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |