Searched defs:stack_base (Results 1 - 4 of 4) sorted by relevance
/bionic/libc/include/bits/ |
H A D | pthread_types.h | 38 void* stack_base; member in struct:__anon23
|
/bionic/libc/bionic/ |
H A D | pthread_attr.cpp | 43 attr->stack_base = NULL; 105 int pthread_attr_setstack(pthread_attr_t* attr, void* stack_base, size_t stack_size) { argument 109 if (reinterpret_cast<uintptr_t>(stack_base) & (PAGE_SIZE - 1)) { 112 attr->stack_base = stack_base; 147 static int __pthread_attr_getstack_main_thread(void** stack_base, size_t* stack_size) { argument 174 *stack_base = reinterpret_cast<void*>(hi - *stack_size); 183 int pthread_attr_getstack(const pthread_attr_t* attr, void** stack_base, size_t* stack_size) { argument 184 *stack_base = attr->stack_base; [all...] |
H A D | pthread_create.cpp | 65 void* stack_base = mmap(NULL, SIGNAL_STACK_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); local 66 if (stack_base != MAP_FAILED) { 69 if (mprotect(stack_base, PAGE_SIZE, PROT_NONE) == -1) { 70 munmap(stack_base, SIGNAL_STACK_SIZE); 74 ss.ss_sp = reinterpret_cast<uint8_t*>(stack_base) + PAGE_SIZE; 78 thread->alternate_signal_stack = stack_base; 83 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, stack_base, PAGE_SIZE, "thread signal stack guard page"); 146 if (attr->stack_base == NULL) { 151 attr->stack_base = __create_thread_mapped_space(mmap_size, attr->guard_size); 152 if (attr->stack_base [all...] |
/bionic/tests/ |
H A D | pthread_test.cpp | 1249 void* stack_base; local 1251 ASSERT_EQ(0, pthread_attr_getstack(&attributes, &stack_base, &stack_size)); 1270 // The high address of the /proc/self/maps [stack] region should equal stack_base + stack_size. 1273 EXPECT_EQ(maps_stack_hi, reinterpret_cast<uint8_t*>(stack_base) + stack_size); 1297 ASSERT_EQ(0, pthread_attr_getstack(&attributes, &stack_base, &stack_size)); 1311 ASSERT_EQ(0, pthread_attr_getstack(&attributes, &stack_base, &stack_size)); 1334 void* stack_base; local 1336 ASSERT_EQ(0, pthread_attr_getstack(&attr, &stack_base, &stack_size)); 1338 getstack_signal_handler_arg.main_stack_base = stack_base; 1392 void* stack_base; local [all...] |
Completed in 61 milliseconds