Home
last modified time | relevance | path

Searched refs:stack_size (Results 1 – 7 of 7) sorted by relevance

/frameworks/libs/native_bridge_support/android_api/libc/proxy/
Dpthread_translation.cc64 size_t guest_stack_size = attr.stack_size; in DoCustomTrampoline_pthread_create()
72 attr.stack_size = std::max(guest_stack_size, GetStackSizeForTranslation()); in DoCustomTrampoline_pthread_create()
111 size_t stack_size; in DoCustomTrampoline_pthread_getattr_np() local
115 if (GetGuestThreadAttr(tid, &stack_base, &stack_size, &guard_size, &error)) { in DoCustomTrampoline_pthread_getattr_np()
121 guest_attr->stack_size = stack_size; in DoCustomTrampoline_pthread_getattr_np()
Dpthread_translation.h41 CHECK_FIELD_LAYOUT(pthread_attr_t, stack_size, 64, 32);
/frameworks/libs/binary_translation/guest_os_primitives/
Dguest_thread_manager.cc83 size_t* stack_size, in GetGuestThreadAttr() argument
88 thread->GetAttr(stack_base, stack_size, guard_size); in GetGuestThreadAttr()
166 size_t stack_size; in AttachCurrentThread() local
170 CHECK_EQ(0, pthread_attr_getstacksize(&attr, &stack_size)); in AttachCurrentThread()
172 thread = GuestThread::CreatePthread(nullptr, stack_size, guard_size); in AttachCurrentThread()
Dguest_thread.cc118 GuestThread* GuestThread::CreatePthread(void* stack, size_t stack_size, size_t guard_size) { in CreatePthread() argument
124 if (!thread->AllocStack(stack, stack_size, guard_size)) { in CreatePthread()
206 bool GuestThread::AllocStack(void* stack, size_t stack_size, size_t guard_size) { in AllocStack() argument
222 stack_size_ = stack_size; in AllocStack()
228 mmap_size_ = guard_size_ + AlignUpPageSize(stack_size); in AllocStack()
/frameworks/libs/binary_translation/guest_os_primitives/include/berberis/guest_os_primitives/
Dguest_thread.h61 static GuestThread* CreatePthread(void* stack, size_t stack_size, size_t guard_size);
81 void GetAttr(GuestAddr* stack_base, size_t* stack_size, size_t* guard_size) const { in GetAttr() argument
83 *stack_size = stack_size_; in GetAttr()
113 bool AllocStack(void* stack, size_t stack_size, size_t guard_size);
Dguest_thread_manager.h32 size_t* stack_size,
/frameworks/libs/binary_translation/tests/ndk_program_tests/
Dthread_test.cc119 size_t stack_size; in TEST() local
128 ASSERT_EQ(pthread_attr_getstacksize(&attr, &stack_size), 0); in TEST()
129 ASSERT_EQ(stack_size, 16 * 1024U); in TEST()