Searched refs:stack_size (Results 1 – 7 of 7) sorted by relevance
/bionic/libc/bionic/ |
D | pthread_attr.cpp | 48 attr->stack_size = PTHREAD_STACK_SIZE_DEFAULT; in pthread_attr_init() 131 int pthread_attr_setstacksize(pthread_attr_t* attr, size_t stack_size) { in pthread_attr_setstacksize() argument 132 if (stack_size < PTHREAD_STACK_MIN) { in pthread_attr_setstacksize() 135 attr->stack_size = stack_size; in pthread_attr_setstacksize() 140 int pthread_attr_getstacksize(const pthread_attr_t* attr, size_t* stack_size) { in pthread_attr_getstacksize() argument 142 return pthread_attr_getstack(attr, &unused, stack_size); in pthread_attr_getstacksize() 146 int pthread_attr_setstack(pthread_attr_t* attr, void* stack_base, size_t stack_size) { in pthread_attr_setstack() argument 147 if ((stack_size & (page_size() - 1) || stack_size < PTHREAD_STACK_MIN)) { in pthread_attr_setstack() 154 attr->stack_size = stack_size; in pthread_attr_setstack() 158 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 | 212 ThreadMapping __allocate_thread_mapping(size_t stack_size, size_t stack_guard_size) { in __allocate_thread_mapping() argument 217 if (__builtin_add_overflow(stack_size, stack_guard_size, &mmap_size)) return {}; in __allocate_thread_mapping() 278 mapping = __allocate_thread_mapping(attr->stack_size, attr->guard_size); in __allocate_thread() 288 stack_top = static_cast<char*>(attr->stack_base) + attr->stack_size; in __allocate_thread() 316 attr->stack_size = stack_top - static_cast<char*>(attr->stack_base); in __allocate_thread()
|
D | pthread_internal.h | 203 __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 | 169 size_t stack_size = 640 * 1024; in TEST() local 170 void* stack = mmap(nullptr, stack_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in TEST() 172 memset(stack, 0xff, stack_size); in TEST() 176 ASSERT_EQ(0, pthread_attr_setstack(&attr, stack, stack_size)); in TEST() 185 ASSERT_EQ(0, munmap(stack, stack_size)); in TEST() 198 size_t stack_size = 640 * 1024; in TEST() local 199 std::unique_ptr<char[]> stack(new (std::align_val_t(getpagesize())) char[stack_size]); in TEST() 200 memset(stack.get(), '\xff', stack_size); in TEST() 204 ASSERT_EQ(0, pthread_attr_setstack(&attr, stack.get(), stack_size)); in TEST() 735 size_t stack_size = 640*1024; 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 | 46 __aligned_u64 stack_size; member
|