Searched refs:stack_size (Results 1 – 7 of 7) sorted by relevance
/bionic/libc/bionic/ |
D | pthread_attr.cpp | 47 attr->stack_size = PTHREAD_STACK_SIZE_DEFAULT; in pthread_attr_init() 130 int pthread_attr_setstacksize(pthread_attr_t* attr, size_t stack_size) { in pthread_attr_setstacksize() argument 131 if (stack_size < PTHREAD_STACK_MIN) { in pthread_attr_setstacksize() 134 attr->stack_size = stack_size; in pthread_attr_setstacksize() 139 int pthread_attr_getstacksize(const pthread_attr_t* attr, size_t* stack_size) { in pthread_attr_getstacksize() argument 141 return pthread_attr_getstack(attr, &unused, stack_size); in pthread_attr_getstacksize() 145 int pthread_attr_setstack(pthread_attr_t* attr, void* stack_base, size_t stack_size) { in pthread_attr_setstack() argument 146 if ((stack_size & (PAGE_SIZE - 1) || stack_size < PTHREAD_STACK_MIN)) { in pthread_attr_setstack() 153 attr->stack_size = stack_size; in pthread_attr_setstack() 187 static int __pthread_attr_getstack_main_thread(void** stack_base, size_t* stack_size) { in __pthread_attr_getstack_main_thread() argument [all …]
|
D | pthread_create.cpp | 199 ThreadMapping __allocate_thread_mapping(size_t stack_size, size_t stack_guard_size) { in __allocate_thread_mapping() argument 204 if (__builtin_add_overflow(stack_size, stack_guard_size, &mmap_size)) return {}; in __allocate_thread_mapping() 259 mapping = __allocate_thread_mapping(attr->stack_size, attr->guard_size); in __allocate_thread() 269 stack_top = static_cast<char*>(attr->stack_base) + attr->stack_size; in __allocate_thread() 297 attr->stack_size = stack_top - static_cast<char*>(attr->stack_base); in __allocate_thread()
|
D | pthread_internal.h | 179 __LIBC_HIDDEN__ ThreadMapping __allocate_thread_mapping(size_t stack_size, size_t stack_guard_size);
|
D | ndk_cruft.cpp | 103 *stack_addr = (char*)attr->stack_base + attr->stack_size; in pthread_attr_getstackaddr()
|
/bionic/tests/ |
D | pthread_test.cpp | 164 size_t stack_size = 640 * 1024; in TEST() local 165 void* stack = mmap(nullptr, stack_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in TEST() 167 memset(stack, 0xff, stack_size); in TEST() 171 ASSERT_EQ(0, pthread_attr_setstack(&attr, stack, stack_size)); in TEST() 180 ASSERT_EQ(0, munmap(stack, stack_size)); in TEST() 709 size_t stack_size = 640*1024; in TEST() local 710 void* stack = mmap(nullptr, stack_size, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0); in TEST() 714 pthread_attr_setstack(&a, stack, stack_size); in TEST() 719 ASSERT_EQ(0, munmap(stack, stack_size)); in TEST() 813 size_t stack_size; in TEST() local [all …]
|
/bionic/libc/include/bits/ |
D | pthread_types.h | 37 size_t stack_size; member
|
/bionic/libc/kernel/uapi/linux/ |
D | sched.h | 58 __aligned_u64 stack_size; member
|