Lines Matching refs:stack
163 * signals, since they will not have a stack in their last
172 /* The following call unmaps the thread's stack mapping
173 * and then exits without touching the stack. */
251 unsigned char *map = 0, *stack = 0, *tsd = 0, *stack_limit;
283 stack = (void *)(attr._a_stackaddr & -16);
285 /* Use application-provided stack for TLS only when
287 * application's stack space. */
289 tsd = stack - __pthread_tsd_size;
290 stack = tsd - libc.tls_size;
291 memset(stack, 0, need);
316 if (!stack) {
317 stack = tsd - libc.tls_size;
325 new->stack = stack;
326 new->stack_size = stack - stack_limit;
340 /* Setup argument structure for the new thread on its stack.
343 stack -= (uintptr_t)stack % sizeof(uintptr_t);
344 stack -= sizeof(struct start_args);
345 struct start_args *args = (void *)stack;
364 ret = __clone((c11 ? start_c11 : start), stack, flags, args, &new->tid, TP_ADJ(new), &__thread_list_lock);