Searched refs:stack_base (Results 1 - 8 of 8) sorted by relevance

/bionic/libc/bionic/
H A Dpthread_create.cpp91 void* stack_base = mmap(NULL, SIGNAL_STACK_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); local
92 if (stack_base != MAP_FAILED) {
94 if (mprotect(stack_base, PTHREAD_GUARD_SIZE, PROT_NONE) == -1) {
95 munmap(stack_base, SIGNAL_STACK_SIZE);
99 ss.ss_sp = reinterpret_cast<uint8_t*>(stack_base) + PTHREAD_GUARD_SIZE;
103 thread->alternate_signal_stack = stack_base;
108 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, stack_base, PTHREAD_GUARD_SIZE, "thread signal stack guard");
196 if (attr->stack_base == NULL) {
203 attr->stack_base = __create_thread_mapped_space(mmap_size, attr->guard_size);
204 if (attr->stack_base
[all...]
H A Dpthread_attr.cpp46 attr->stack_base = NULL;
145 int pthread_attr_setstack(pthread_attr_t* attr, void* stack_base, size_t stack_size) { argument
149 if (reinterpret_cast<uintptr_t>(stack_base) & (PAGE_SIZE - 1)) {
152 attr->stack_base = stack_base;
187 static int __pthread_attr_getstack_main_thread(void** stack_base, size_t* stack_size) { argument
214 *stack_base = reinterpret_cast<void*>(hi - *stack_size);
224 int pthread_attr_getstack(const pthread_attr_t* attr, void** stack_base, size_t* stack_size) { argument
225 *stack_base = attr->stack_base;
[all...]
H A Dpthread_exit.cpp129 _exit_with_stack_teardown(thread->attr.stack_base, thread->mmap_size);
H A Dpthread_internal.cpp92 munmap(thread->attr.stack_base, thread->mmap_size);
H A Dndk_cruft.cpp102 *stack_addr = (char*)attr->stack_base + attr->stack_size;
/bionic/libc/include/bits/
H A Dpthread_types.h37 void* stack_base; member in struct:__anon53
/bionic/tools/versioner/current/bits/
H A Dpthread_types.h37 void* stack_base; member in struct:__anon2467
/bionic/tests/
H A Dpthread_test.cpp1505 void* stack_base; local
1507 ASSERT_EQ(0, pthread_attr_getstack(&attributes, &stack_base, &stack_size));
1531 // The high address of the /proc/self/maps stack region should equal stack_base + stack_size.
1534 EXPECT_EQ(maps_stack_hi, reinterpret_cast<uint8_t*>(stack_base) + stack_size);
1558 ASSERT_EQ(0, pthread_attr_getstack(&attributes, &stack_base, &stack_size));
1572 ASSERT_EQ(0, pthread_attr_getstack(&attributes, &stack_base, &stack_size));
1596 void* stack_base; local
1598 ASSERT_EQ(0, pthread_attr_getstack(&attr, &stack_base, &stack_size));
1607 ASSERT_EQ(getstack_signal_handler_arg.main_stack_base, stack_base);
1657 void* stack_base; local
[all...]

Completed in 2347 milliseconds