Searched refs:stack_size (Results 1 - 8 of 8) sorted by relevance
/bionic/libc/bionic/ |
H A D | pthread_attr.cpp | 43 attr->stack_size = PTHREAD_STACK_SIZE_DEFAULT; 91 int pthread_attr_setstacksize(pthread_attr_t* attr, size_t stack_size) { argument 92 if (stack_size < PTHREAD_STACK_MIN) { 95 attr->stack_size = stack_size; 99 int pthread_attr_getstacksize(const pthread_attr_t* attr, size_t* stack_size) { argument 101 return pthread_attr_getstack(attr, &unused, stack_size); 104 int pthread_attr_setstack(pthread_attr_t* attr, void* stack_base, size_t stack_size) { argument 105 if ((stack_size & (PAGE_SIZE - 1) || stack_size < PTHREAD_STACK_MI 116 __pthread_attr_getstack_main_thread(void** stack_base, size_t* stack_size) argument 149 pthread_attr_getstack(const pthread_attr_t* attr, void** stack_base, size_t* stack_size) argument [all...] |
H A D | pthread_exit.cpp | 92 size_t stack_size = thread->attr.stack_size; local 107 thread->attr.stack_size = 0; 134 _exit_with_stack_teardown(stack_base, stack_size);
|
H A D | pthread_create.cpp | 108 void* stack = mmap(NULL, thread->attr.stack_size, prot, flags, -1, 0); 113 thread->attr.stack_size, strerror(errno)); 122 munmap(stack, thread->attr.stack_size); 175 thread->attr.stack_size = BIONIC_ALIGN(thread->attr.stack_size, PAGE_SIZE); 195 thread->attr.stack_size - BIONIC_TLS_SLOTS * sizeof(void*)); 231 munmap(thread->attr.stack_base, thread->attr.stack_size);
|
H A D | libc_init_common.cpp | 93 main_thread.attr.stack_size = 0; // User code should never see this; we'll compute it when asked.
|
H A D | ndk_cruft.cpp | 94 *stack_addr = (char*)attr->stack_base + attr->stack_size;
|
/bionic/libc/kernel/uapi/linux/ |
H A D | flat.h | 32 unsigned long stack_size; member in struct:flat_hdr
|
/bionic/tests/ |
H A D | pthread_test.cpp | 119 size_t stack_size = 128 * 1024; local 120 void* stack = mmap(NULL, stack_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); 122 memset(stack, 0xff, stack_size); 126 ASSERT_EQ(0, pthread_attr_setstack(&attr, stack, stack_size)); 135 ASSERT_EQ(0, munmap(stack, stack_size)); 519 size_t stack_size = 64*1024; local 520 void* stack = mmap(NULL, stack_size, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0); 524 pthread_attr_setstack(&a, stack, stack_size); 529 ASSERT_EQ(0, munmap(stack, stack_size)); 601 size_t stack_size; local 837 size_t stack_size; local [all...] |
/bionic/libc/include/ |
H A D | pthread.h | 82 size_t stack_size; member in struct:__anon49 161 int pthread_attr_setstacksize(pthread_attr_t*, size_t stack_size) __nonnull((1));
|
Completed in 143 milliseconds