Searched refs:guard_size (Results 1 - 5 of 5) sorted by relevance

/bionic/libc/bionic/
H A Dpthread_attr.cpp44 attr->guard_size = PAGE_SIZE;
158 int pthread_attr_setguardsize(pthread_attr_t* attr, size_t guard_size) { argument
159 attr->guard_size = guard_size;
163 int pthread_attr_getguardsize(const pthread_attr_t* attr, size_t* guard_size) { argument
164 *guard_size = attr->guard_size;
H A Dpthread_create.cpp118 if (mprotect(stack, thread->attr.guard_size, PROT_NONE) == -1) {
121 thread->attr.guard_size, strerror(errno));
176 thread->attr.guard_size = BIONIC_ALIGN(thread->attr.guard_size, PAGE_SIZE);
H A Dlibc_init_common.cpp92 main_thread.attr.guard_size = 0; // The main thread has no guard page.
/bionic/tests/
H A Dpthread_test.cpp575 size_t guard_size; local
576 ASSERT_EQ(0, pthread_attr_getguardsize(&attributes, &guard_size));
577 ASSERT_EQ(128U, guard_size);
582 ASSERT_EQ(0, pthread_attr_getguardsize(&attributes, &guard_size));
583 ASSERT_EQ(32*1024U, guard_size);
587 ASSERT_EQ(0, pthread_attr_getguardsize(&attributes, &guard_size));
588 ASSERT_EQ(32*1024U + 1, guard_size);
831 size_t guard_size; local
832 ASSERT_EQ(0, pthread_attr_getguardsize(&attributes, &guard_size));
833 ASSERT_EQ(0U, guard_size); // Th
[all...]
/bionic/libc/include/
H A Dpthread.h83 size_t guard_size; member in struct:__anon49

Completed in 36 milliseconds