123456789101112131415161718192021222324252627282930313233343536 |
- #include <alloca.h>
- #include <stdlib.h>
- #include <sys/param.h>
- #include "internals.h"
- #include <sysdep-cancel.h>
- int
- __libc_alloca_cutoff (size_t size)
- {
- if (! SINGLE_THREAD_P)
- {
- pthread_descr self = thread_self ();
- return size <= LIBC_THREAD_GETMEM (self, p_alloca_cutoff);
- }
- return size <= __MAX_ALLOCA_CUTOFF;
- }
|