/glibc-2.36/nptl/ |
D | pthread_attr_setstack.c | 31 size_t stacksize) in __pthread_attr_setstack() argument 38 int ret = check_stacksize_attr (stacksize); in __pthread_attr_setstack() 46 iattr->stacksize = stacksize; in __pthread_attr_setstack() 48 iattr->stackaddr = (char *) stackaddr + stacksize; in __pthread_attr_setstack() 73 size_t stacksize) in __old_pthread_attr_setstack() argument 80 if (stacksize < 16384) in __old_pthread_attr_setstack() 87 iattr->stacksize = stacksize; in __old_pthread_attr_setstack() 89 iattr->stackaddr = (char *) stackaddr + stacksize; in __old_pthread_attr_setstack()
|
D | pthread_attr_setstacksize.c | 29 __pthread_attr_setstacksize (pthread_attr_t *attr, size_t stacksize) in __pthread_attr_setstacksize() argument 36 int ret = check_stacksize_attr (stacksize); in __pthread_attr_setstacksize() 40 iattr->stacksize = stacksize; in __pthread_attr_setstacksize() 62 __old_pthread_attr_setstacksize (pthread_attr_t *attr, size_t stacksize) in __old_pthread_attr_setstacksize() argument 69 if (stacksize < 16384) in __old_pthread_attr_setstacksize() 76 iattr->stacksize = stacksize; in __old_pthread_attr_setstacksize()
|
D | tst-pthread-getattr.c | 62 get_self_pthread_attr (const char *id, void **stackaddr, size_t *stacksize) in get_self_pthread_attr() argument 74 if ((ret = pthread_attr_getstack (&attr, stackaddr, stacksize)) < 0) in get_self_pthread_attr() 91 size_t stacksize = 0; in check_stack_top() local 106 if (get_self_pthread_attr ("check_stack_top", &stackaddr, &stacksize)) in check_stack_top() 117 stack_limit.rlim_cur = MIN (stacksize - pagesize + 1, MAX_STACK_SIZE); in check_stack_top() 125 if (get_self_pthread_attr ("check_stack_top2", &stackaddr, &stacksize)) in check_stack_top() 128 printf ("Adjusted rlimit: stacksize=%zu, stackaddr=%p\n", stacksize, in check_stack_top()
|
D | pthread_getattr_np.c | 66 iattr->stacksize = thread->stackblock_size - thread->guardsize; in __pthread_getattr_np() 134 iattr->stacksize = in __pthread_getattr_np() 140 iattr->stacksize = (iattr->stacksize in __pthread_getattr_np() 144 if ((size_t) iattr->stacksize in __pthread_getattr_np() 146 iattr->stacksize = (size_t) iattr->stackaddr - last_to; in __pthread_getattr_np() 149 if ((size_t) iattr->stacksize in __pthread_getattr_np() 151 iattr->stacksize = to - (size_t) iattr->stackaddr; in __pthread_getattr_np()
|
D | tst-attr3.c | 81 size_t stacksize; in tf() local 82 err = pthread_attr_getstack (&a, &stackaddr, &stacksize); in tf() 89 || (void *) &a >= stackaddr + stacksize) in tf() 95 printf ("thread stack %p-%p (0x%zx)\n", stackaddr, stackaddr + stacksize, in tf() 96 stacksize); in tf() 256 size_t stacksize; in do_test() local 257 err = pthread_attr_getstack (&a, &stackaddr, &stacksize); in do_test() 264 || (void *) &a >= stackaddr + stacksize) in do_test() 271 stackaddr + stacksize, stacksize); in do_test()
|
D | pthread_setattr_default_np.c | 49 if (real_in->stacksize != 0) in __pthread_setattr_default_np() 51 ret = check_stacksize_attr (real_in->stacksize); in __pthread_setattr_default_np() 70 if (temp.internal.stacksize == 0) in __pthread_setattr_default_np() 71 temp.internal.stacksize = __default_pthread_attr.internal.stacksize; in __pthread_setattr_default_np()
|
D | tst-default-attr.c | 40 static size_t stacksize = 1024 * 1024; variable 313 if (stacksize != stack) in verify_stacksize_result() 315 printf ("failed to set default stacksize (%zu, %zu)\n", stacksize, stack); in verify_stacksize_result() 338 stacksize += pagesize; in do_stacksize_test() 343 RETURN_IF_FAIL (pthread_attr_setstacksize, &attr, stacksize); in do_stacksize_test() 345 stacksize *= 2; in do_stacksize_test() 346 RETURN_IF_FAIL (pthread_attr_setstacksize, &attr, stacksize); in do_stacksize_test()
|
D | pthread_attr_getstack.c | 23 size_t *stacksize) in __pthread_attr_getstack() argument 31 *stackaddr = (char *) iattr->stackaddr - iattr->stacksize; in __pthread_attr_getstack() 35 *stacksize = iattr->stacksize; in __pthread_attr_getstack()
|
D | pthread_attr_getstacksize.c | 22 __pthread_attr_getstacksize (const pthread_attr_t *attr, size_t *stacksize) in __pthread_attr_getstacksize() argument 28 size_t size = iattr->stacksize; in __pthread_attr_getstacksize() 35 size = __default_pthread_attr.internal.stacksize; in __pthread_attr_getstacksize() 38 *stacksize = size; in __pthread_attr_getstacksize()
|
D | allocatestack.c | 215 void **stack, size_t *stacksize) in allocate_stack() argument 228 if (attr->stacksize != 0) in allocate_stack() 229 size = attr->stacksize; in allocate_stack() 233 size = __default_pthread_attr.internal.stacksize; in allocate_stack() 247 stackaddr += attr->stacksize; in allocate_stack() 251 if (attr->stacksize != 0 in allocate_stack() 252 && attr->stacksize < (tls_static_size_for_stack in allocate_stack() 569 *stacksize = stacktop - pd->stackblock; in allocate_stack()
|
D | pthread_create.c | 233 size_t stacksize, bool *thread_ran) in create_thread() argument 292 .stack_size = stacksize, in create_thread() 623 size_t stacksize = 0; in __pthread_create_2_1() local 650 int err = allocate_stack (iattr, &pd, &stackaddr, &stacksize); in __pthread_create_2_1() 800 stacksize, &thread_ran); in __pthread_create_2_1() 832 stacksize, &thread_ran); in __pthread_create_2_1() 931 new_attr.stacksize = 0; in __pthread_create_2_0()
|
/glibc-2.36/htl/ |
D | pt-create.c | 113 size_t stacksize; in weak_alias() local 135 stacksize = setup->__stacksize; in weak_alias() 136 if (stacksize == 0) in weak_alias() 141 stacksize = rlim.rlim_cur; in weak_alias() 142 if (stacksize == 0) in weak_alias() 143 stacksize = PTHREAD_STACK_DEFAULT; in weak_alias() 165 + stacksize); in weak_alias() 173 pthread->stacksize = stacksize; in weak_alias() 281 / __vm_page_size) * __vm_page_size + stacksize); in weak_alias()
|
/glibc-2.36/support/ |
D | support_stack_alloc.c | 45 size_t stacksize = roundup (size + sysconf (_SC_SIGSTKSZ), in support_stack_alloc() local 56 size_t guardsize = roundup (MAX (2 * stacksize, 1024 * 1024), pagesize); in support_stack_alloc() 57 size_t alloc_size = guardsize + stacksize + guardsize; in support_stack_alloc() 72 xmprotect (alloc_base + guardsize, stacksize, prot); in support_stack_alloc() 73 memset (alloc_base + guardsize, 0xA5, stacksize); in support_stack_alloc() 74 return (struct support_stack) { alloc_base + guardsize, stacksize, guardsize }; in support_stack_alloc()
|
D | xpthread_attr_setstacksize.c | 22 xpthread_attr_setstacksize (pthread_attr_t *attr, size_t stacksize) in xpthread_attr_setstacksize() argument 25 pthread_attr_setstacksize (attr, stacksize)); in xpthread_attr_setstacksize()
|
D | xpthread_attr_setstack.c | 22 xpthread_attr_setstack (pthread_attr_t *attr, void *stackaddr, size_t stacksize) in xpthread_attr_setstack() argument 25 pthread_attr_setstack (attr, stackaddr, stacksize)); in xpthread_attr_setstack()
|
/glibc-2.36/sysdeps/mach/htl/ |
D | pt-thread-terminate.c | 36 size_t stacksize; in __pthread_thread_terminate() local 45 stacksize = ((thread->guardsize + __vm_page_size - 1) in __pthread_thread_terminate() 46 / __vm_page_size) * __vm_page_size + thread->stacksize; in __pthread_thread_terminate() 51 stacksize = 0; in __pthread_thread_terminate() 85 (vm_address_t) stackaddr, stacksize); in __pthread_thread_terminate()
|
D | pt-stack-alloc.c | 36 __pthread_stack_alloc (void **stackaddr, size_t stacksize) in __pthread_stack_alloc() argument 46 stacksize, FALSE) != KERN_SUCCESS; base += stacksize) in __pthread_stack_alloc() 63 next_stack_base = base + stacksize; in __pthread_stack_alloc()
|
/glibc-2.36/benchtests/ |
D | thread_create-source.c | 40 thread_create (int nthreads, size_t stacksize, size_t guardsize) in thread_create() argument 45 stacksize = stacksize * pgsize; in thread_create() 48 xpthread_attr_setstacksize (&attr, stacksize); in thread_create()
|
/glibc-2.36/htl/tests/ |
D | test-4.c | 28 size_t stacksize; variable 36 foo = alloca (3 * stacksize / 4); in thr() 65 err = pthread_attr_getstacksize (&attr, &stacksize); in main() 68 err = pthread_attr_setguardsize (&attr, stacksize / 2); in main()
|
/glibc-2.36/misc/ |
D | tsearch.c | 412 int stacksize = 40; in weak_alias() local 414 node **nodestack = alloca (sizeof (node *) * stacksize); in weak_alias() 427 if (sp == stacksize) in weak_alias() 430 stacksize += 20; in weak_alias() 431 newstack = alloca (sizeof (node *) * stacksize); in weak_alias() 473 if (sp == stacksize) in weak_alias() 476 stacksize += 20; in weak_alias() 477 newstack = alloca (sizeof (node *) * stacksize); in weak_alias()
|
/glibc-2.36/sysdeps/unix/sysv/linux/powerpc/ |
D | pthread_attr_setstacksize.c | 6 if (stacksize < 2 * ps) \ 7 stacksize = 2 * ps; \
|
/glibc-2.36/sysdeps/htl/ |
D | pt-attr-getstacksize.c | 23 __pthread_attr_getstacksize (const pthread_attr_t *attr, size_t * stacksize) in __pthread_attr_getstacksize() argument 25 *stacksize = attr->__stacksize; in __pthread_attr_getstacksize()
|
D | pt-attr-setstacksize.c | 23 __pthread_attr_setstacksize (pthread_attr_t *attr, size_t stacksize) in __pthread_attr_setstacksize() argument 25 attr->__stacksize = stacksize; in __pthread_attr_setstacksize()
|
D | pt-attr-getstack.c | 25 void **stackaddr, size_t * stacksize) in __pthread_attr_getstack() argument 28 __pthread_attr_getstacksize (attr, stacksize); in __pthread_attr_getstack()
|
D | pt-attr-setstack.c | 26 __pthread_attr_setstack (pthread_attr_t *attr, void *stackaddr, size_t stacksize) in __pthread_attr_setstack() argument 35 err = __pthread_attr_setstacksize (attr, stacksize); in __pthread_attr_setstack()
|