Home
last modified time | relevance | path

Searched refs:guard_size (Results 1 – 4 of 4) sorted by relevance

/bionic/libc/bionic/
Dpthread_attr.cpp49 attr->guard_size = PTHREAD_GUARD_SIZE; in pthread_attr_init()
186 int pthread_attr_setguardsize(pthread_attr_t* attr, size_t guard_size) { in pthread_attr_setguardsize() argument
187 attr->guard_size = guard_size; in pthread_attr_setguardsize()
192 int pthread_attr_getguardsize(const pthread_attr_t* attr, size_t* guard_size) { in pthread_attr_getguardsize() argument
193 *guard_size = attr->guard_size; in pthread_attr_getguardsize()
Dpthread_create.cpp274 const size_t unaligned_guard_size = attr->guard_size; in __allocate_thread()
275 attr->guard_size = __BIONIC_ALIGN(attr->guard_size, page_size()); in __allocate_thread()
276 if (attr->guard_size < unaligned_guard_size) return EAGAIN; in __allocate_thread()
278 mapping = __allocate_thread_mapping(attr->stack_size, attr->guard_size); in __allocate_thread()
/bionic/libc/include/bits/
Dpthread_types.h38 size_t guard_size; member
/bionic/tests/
Dpthread_test.cpp785 size_t guard_size; in TEST() local
786 ASSERT_EQ(0, pthread_attr_getguardsize(&attributes, &guard_size)); in TEST()
787 ASSERT_EQ(128U, guard_size); in TEST()
797 size_t guard_size; in TEST() local
798 ASSERT_EQ(0, pthread_attr_getguardsize(&attributes, &guard_size)); in TEST()
799 ASSERT_EQ(32*1024U, guard_size); in TEST()
809 size_t guard_size; in TEST() local
810 ASSERT_EQ(0, pthread_attr_getguardsize(&attributes, &guard_size)); in TEST()
811 ASSERT_EQ(32*1024U + 1, guard_size); in TEST()
823 size_t guard_size; in TEST() local
[all …]