Home
last modified time | relevance | path

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

/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/linuxthreads/
A Dmanager.c352 size_t stacksize, guardsize; in pthread_allocate_stack() local
401 stacksize = attr->__stacksize; in pthread_allocate_stack()
419 stacksize = MIN (stacksize, in pthread_allocate_stack()
482 stacksize = MIN (stacksize, in pthread_allocate_stack()
511 munmap(res_addr, stacksize / 2); in pthread_allocate_stack()
522 munmap(res_addr, stacksize / 2); in pthread_allocate_stack()
524 stacksize/2); in pthread_allocate_stack()
576 *out_stacksize = stacksize / 2; in pthread_allocate_stack()
578 *out_stacksize = stacksize; in pthread_allocate_stack()
910 guardaddr -= stacksize; in pthread_free()
[all …]
A Dattr.c206 if (stacksize > STACK_SIZE)
211 if (stacksize < PTHREAD_STACK_MIN)
214 attr->__stacksize = stacksize;
239 if (stacksize > STACK_SIZE)
244 if (stacksize < 16384)
247 attr->__stacksize = stacksize;
258 *stacksize = attr->__stacksize;
264 size_t stacksize) in weak_alias()
293 size_t stacksize)
322 size_t *stacksize)
[all …]
/l4re-core-master/uclibc/lib/libpthread/src/
A Dattr.c239 if (stacksize > __pthread_max_stacksize)
243 if (stacksize < PTHREAD_STACK_MIN)
246 attr->__stacksize = stacksize;
268 if (stacksize > __pthread_max_stacksize)
272 if (stacksize < 16384)
275 attr->__stacksize = stacksize;
288 *stacksize = attr->__stacksize;
296 size_t stacksize) in weak_alias()
327 size_t stacksize)
358 size_t *stacksize)
[all …]
A Dmanager.cc391 size_t stacksize, guardsize; in pthread_allocate_stack() local
440 stacksize = attr->__stacksize; in pthread_allocate_stack()
452 stacksize = MIN (stacksize, in pthread_allocate_stack()
476 err = e->mem_alloc()->alloc(stacksize, ds); in pthread_allocate_stack()
521 *out_stacksize = stacksize; in pthread_allocate_stack()
823 size_t stacksize = guardaddr - stack_addr; in pthread_handle_create()
824 munmap(stack_addr, stacksize + guardsize); in pthread_handle_create()
828 munmap(new_thread, stacksize + guardsize); in pthread_handle_create()
926 guardaddr -= stacksize; in pthread_free()
927 stacksize *= 2; in pthread_free()
[all …]
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/
A Dpthread_attr_setstack.c29 size_t stacksize) in __pthread_attr_setstack() argument
37 if (stacksize < PTHREAD_STACK_MIN) in __pthread_attr_setstack()
44 iattr->stacksize = stacksize; in __pthread_attr_setstack()
45 iattr->stackaddr = (char *) stackaddr + stacksize; in __pthread_attr_setstack()
A Dpthread_attr_getstack.c27 size_t *stacksize) in __pthread_attr_getstack() argument
35 *stackaddr = (char *) iattr->stackaddr - iattr->stacksize; in __pthread_attr_getstack()
36 *stacksize = iattr->stacksize; in __pthread_attr_getstack()
A Dpthread_attr_setstacksize.c28 size_t stacksize) in __pthread_attr_setstacksize() argument
36 if (stacksize < PTHREAD_STACK_MIN) in __pthread_attr_setstacksize()
39 iattr->stacksize = stacksize; in __pthread_attr_setstacksize()
A Dpthread_attr_getstacksize.c26 size_t *stacksize) in __pthread_attr_getstacksize() argument
35 *stacksize = iattr->stacksize ?: __default_stacksize; in __pthread_attr_getstacksize()
A Dpthread_getattr_np.c62 iattr->stacksize = thread->stackblock_size; in pthread_getattr_np()
63 iattr->stackaddr = (char *) thread->stackblock + iattr->stacksize; in pthread_getattr_np()
111 iattr->stacksize = rl.rlim_cur; in pthread_getattr_np()
115 if ((size_t) iattr->stacksize in pthread_getattr_np()
117 iattr->stacksize = (size_t) iattr->stackaddr - last_to; in pthread_getattr_np()
A Dallocatestack.c55 # define STACK_VARIABLES void *stackaddr = NULL; size_t stacksize = 0
58 # define STACK_VARIABLES_ARGS stackaddr, stacksize
61 # define STACK_VARIABLES_PARMS void *stackaddr, size_t stacksize
64 # define ALLOCATE_STACK_PARMS void **stack, size_t *stacksize
69 allocate_stack (attr, pd, &stackaddr, &stacksize)
349 size = attr->stacksize ?: __default_stacksize; in allocate_stack()
358 if (attr->stacksize != 0 in allocate_stack()
359 && attr->stacksize < (__static_tls_size + MINIMAL_REST_STACK)) in allocate_stack()
689 *stacksize = stacktop - *stack; in allocate_stack()
/l4re-core-master/uclibc/lib/contrib/uclibc/test/nptl/
A Dtst-attr3.c79 size_t stacksize; in tf() local
80 err = pthread_attr_getstack (&a, &stackaddr, &stacksize); in tf()
87 || (void *) &a >= stackaddr + stacksize) in tf()
93 printf ("thread stack %p-%p (0x%zx)\n", stackaddr, stackaddr + stacksize, in tf()
94 stacksize); in tf()
254 size_t stacksize; in do_test() local
255 err = pthread_attr_getstack (&a, &stackaddr, &stacksize); in do_test()
262 || (void *) &a >= stackaddr + stacksize) in do_test()
269 stackaddr + stacksize, stacksize); in do_test()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/linuxthreads.old/
A Dattr.c224 int __pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
227 if (stacksize < PTHREAD_STACK_MIN)
230 attr->__stacksize = stacksize;
235 int __pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize) in weak_alias()
237 *stacksize = attr->__stacksize; in weak_alias()
A Dmanager.c350 size_t stacksize, guardsize; in pthread_allocate_stack() local
371 stacksize = STACK_SIZE - pagesize; in pthread_allocate_stack()
373 stacksize = MIN(stacksize, roundup(attr->__stacksize, pagesize)); in pthread_allocate_stack()
376 new_thread_bottom = (char *) (new_thread + 1) - stacksize; in pthread_allocate_stack()
388 if (stacksize == (size_t) (STACK_SIZE - pagesize)) in pthread_allocate_stack()
413 stacksize = INITIAL_STACK_SIZE; in pthread_allocate_stack()
417 stacksize = attr->__stacksize; in pthread_allocate_stack()
421 if ((new_thread_bottom = malloc(stacksize)) == NULL) in pthread_allocate_stack()
426 PDEBUG("malloced chunk: base=%p, size=0x%04x\n", new_thread_bottom, stacksize); in pthread_allocate_stack()
445 new_thread = ((pthread_descr) ((int)(new_thread_bottom + stacksize) & -sizeof(void*))) - 1; in pthread_allocate_stack()
A Dlinuxthreads.texi299 @item stacksize
310 with the size of the memory area, @var{stacksize}, measured in bytes.
312 If the value of @var{stacksize} is less than @code{PTHREAD_STACK_MIN},
329 If the value exceeds the @code{stacksize}, @code{pthread_atrr_setguardsize}
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/
A Dtimer_create.c188 nattr->stacksize = oattr->stacksize; in timer_create()
A Dinternaltypes.h36 size_t stacksize; member
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/pthread/
A Dtimer_routines.c508 && ileft->stacksize == iright->stacksize in thread_attr_compare()
/l4re-core-master/lua/lib/contrib/src/
A Dldo.c192 int oldsize = stacksize(L); in luaD_reallocstack()
220 int size = stacksize(L); in luaD_growstack()
225 lua_assert(stacksize(L) == ERRORSTACKSIZE); in luaD_growstack()
285 if (inuse <= LUAI_MAXSTACK && stacksize(L) > max) in luaD_shrinkstack()
A Dllimits.h343 { int sz_ = stacksize(L); pre; luaD_reallocstack((L), sz_, 0); pos; }
A Dlstate.h142 #define stacksize(th) cast_int((th)->stack_last - (th)->stack) macro
A Dlstate.c209 luaM_freearray(L, L->stack, stacksize(L) + EXTRA_STACK); /* free stack */ in freestack()
A Dlgc.c645 return 1 + stacksize(th); in traversethread()

Completed in 38 milliseconds