Searched refs:stack_base (Results 1 – 7 of 7) sorted by relevance
/bionic/libc/bionic/ |
D | pthread_attr.cpp | 43 attr->stack_base = NULL; in pthread_attr_init() 105 int pthread_attr_setstack(pthread_attr_t* attr, void* stack_base, size_t stack_size) { in pthread_attr_setstack() argument 109 if (reinterpret_cast<uintptr_t>(stack_base) & (PAGE_SIZE - 1)) { in pthread_attr_setstack() 112 attr->stack_base = stack_base; in pthread_attr_setstack() 117 static int __pthread_attr_getstack_main_thread(void** stack_base, size_t* stack_size) { in __pthread_attr_getstack_main_thread() argument 145 *stack_base = reinterpret_cast<void*>(hi - *stack_size); in __pthread_attr_getstack_main_thread() 154 int pthread_attr_getstack(const pthread_attr_t* attr, void** stack_base, size_t* stack_size) { in pthread_attr_getstack() argument 155 *stack_base = attr->stack_base; in pthread_attr_getstack() 181 return __pthread_attr_getstack_main_thread(&attr->stack_base, &attr->stack_size); in pthread_getattr_np()
|
D | pthread_create.cpp | 72 …void* stack_base = mmap(NULL, SIGNAL_STACK_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, … in __init_alternate_signal_stack() local 73 if (stack_base != MAP_FAILED) { in __init_alternate_signal_stack() 76 if (mprotect(stack_base, PAGE_SIZE, PROT_NONE) == -1) { in __init_alternate_signal_stack() 77 munmap(stack_base, SIGNAL_STACK_SIZE); in __init_alternate_signal_stack() 81 ss.ss_sp = reinterpret_cast<uint8_t*>(stack_base) + PAGE_SIZE; in __init_alternate_signal_stack() 85 thread->alternate_signal_stack = stack_base; in __init_alternate_signal_stack() 151 if (attr->stack_base == NULL) { in __allocate_thread() 156 attr->stack_base = __create_thread_mapped_space(mmap_size, attr->guard_size); in __allocate_thread() 157 if (attr->stack_base == NULL) { in __allocate_thread() 160 stack_top = reinterpret_cast<uint8_t*>(attr->stack_base) + mmap_size; in __allocate_thread() [all …]
|
D | pthread_internal.cpp | 73 munmap(thread->attr.stack_base, thread->mmap_size); in __pthread_internal_free()
|
D | pthread_exit.cpp | 119 _exit_with_stack_teardown(thread->attr.stack_base, thread->mmap_size); in pthread_exit()
|
D | ndk_cruft.cpp | 99 *stack_addr = (char*)attr->stack_base + attr->stack_size; in pthread_attr_getstackaddr()
|
/bionic/libc/include/machine/ |
D | pthread_types.h | 38 void* stack_base; member
|
/bionic/tests/ |
D | pthread_test.cpp | 1148 void* stack_base; in TEST() local 1150 ASSERT_EQ(0, pthread_attr_getstack(&attributes, &stack_base, &stack_size)); in TEST() 1192 EXPECT_EQ(maps_stack_hi, reinterpret_cast<uint8_t*>(stack_base) + stack_size); in TEST() 1202 ASSERT_EQ(0, pthread_attr_getstack(&attributes, &stack_base, &stack_size)); in TEST() 1216 ASSERT_EQ(0, pthread_attr_getstack(&attributes, &stack_base, &stack_size)); in TEST() 1227 void* stack_base; in pthread_attr_getstack_18908062_helper() local 1229 pthread_attr_getstack(&attributes, &stack_base, &stack_size); in pthread_attr_getstack_18908062_helper() 1232 ASSERT_LE(reinterpret_cast<char*>(stack_base), &local_variable); in pthread_attr_getstack_18908062_helper() 1233 ASSERT_LT(&local_variable, reinterpret_cast<char*>(stack_base) + stack_size); in pthread_attr_getstack_18908062_helper()
|