Home
last modified time | relevance | path

Searched refs:stacksize (Results 1 – 25 of 40) sorted by relevance

12

/glibc-2.36/nptl/
Dpthread_attr_setstack.c31 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()
Dpthread_attr_setstacksize.c29 __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()
Dtst-pthread-getattr.c62 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()
Dpthread_getattr_np.c66 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()
Dtst-attr3.c81 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()
Dpthread_setattr_default_np.c49 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()
Dtst-default-attr.c40 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()
Dpthread_attr_getstack.c23 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()
Dpthread_attr_getstacksize.c22 __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()
Dallocatestack.c215 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()
Dpthread_create.c233 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/
Dpt-create.c113 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/
Dsupport_stack_alloc.c45 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()
Dxpthread_attr_setstacksize.c22 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()
Dxpthread_attr_setstack.c22 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/
Dpt-thread-terminate.c36 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()
Dpt-stack-alloc.c36 __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/
Dthread_create-source.c40 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/
Dtest-4.c28 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/
Dtsearch.c412 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/
Dpthread_attr_setstacksize.c6 if (stacksize < 2 * ps) \
7 stacksize = 2 * ps; \
/glibc-2.36/sysdeps/htl/
Dpt-attr-getstacksize.c23 __pthread_attr_getstacksize (const pthread_attr_t *attr, size_t * stacksize) in __pthread_attr_getstacksize() argument
25 *stacksize = attr->__stacksize; in __pthread_attr_getstacksize()
Dpt-attr-setstacksize.c23 __pthread_attr_setstacksize (pthread_attr_t *attr, size_t stacksize) in __pthread_attr_setstacksize() argument
25 attr->__stacksize = stacksize; in __pthread_attr_setstacksize()
Dpt-attr-getstack.c25 void **stackaddr, size_t * stacksize) in __pthread_attr_getstack() argument
28 __pthread_attr_getstacksize (attr, stacksize); in __pthread_attr_getstack()
Dpt-attr-setstack.c26 __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()

12