Lines Matching defs:stack
38 snprintf(name, ANON_STACK_NAME_SIZE, "stack:%d", new->tid);
50 void* stack = mmap(NULL, RESERVE_SIGNAL_STACK_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
51 if (stack != MAP_FAILED) {
52 if (mprotect(stack, __default_guardsize, PROT_NONE) == -1) {
53 munmap(stack, RESERVE_SIGNAL_STACK_SIZE);
59 signal_stack.ss_sp = (uint8_t*)stack + __default_guardsize;
65 self->signal_stack = stack;
304 * signals, since they will not have a stack in their last
313 /* The following call unmaps the thread's stack mapping
314 * and then exits without touching the stack. */
425 unsigned char *map = 0, *stack = 0, *tsd = 0, *stack_limit, *start_addr;
460 stack = (void *)(attr._a_stackaddr & -16);
462 /* Use application-provided stack for TLS only when
464 * application's stack space. */
466 tsd = stack - __pthread_tsd_size;
467 stack = tsd - libc.tls_size;
468 memset(stack, 0, need);
500 if (!stack) {
501 stack = tsd - libc.tls_size;
509 new->stack = stack;
510 new->stack_size = stack - stack_limit;
526 /* Setup argument structure for the new thread on its stack.
529 stack -= (uintptr_t)stack % sizeof(uintptr_t);
530 stack -= sizeof(struct start_args);
531 struct start_args *args = (void *)stack;
550 ret = __clone((c11 ? start_c11 : start), stack, flags, args, &new->tid, TP_ADJ(new), &__thread_list_lock);