Searched refs:guard_size (Results 1 – 4 of 4) sorted by relevance
/bionic/libc/bionic/ |
D | pthread_attr.cpp | 43 attr->guard_size = PAGE_SIZE; in pthread_attr_init() 134 int pthread_attr_setguardsize(pthread_attr_t* attr, size_t guard_size) { in pthread_attr_setguardsize() argument 135 attr->guard_size = guard_size; in pthread_attr_setguardsize() 139 int pthread_attr_getguardsize(pthread_attr_t const* attr, size_t* guard_size) { in pthread_attr_getguardsize() argument 140 *guard_size = attr->guard_size; in pthread_attr_getguardsize()
|
D | pthread_create.cpp | 151 if (mprotect(stack, thread->attr.guard_size, PROT_NONE) == -1) { in __create_thread_stack() 154 thread->attr.guard_size, strerror(errno)); in __create_thread_stack() 189 thread->attr.guard_size = (thread->attr.guard_size + (PAGE_SIZE-1)) & ~(PAGE_SIZE-1); in pthread_create()
|
/bionic/tests/ |
D | pthread_test.cpp | 396 size_t guard_size; in TEST() local 397 ASSERT_EQ(0, pthread_attr_getguardsize(&attributes, &guard_size)); in TEST() 398 ASSERT_EQ(128U, guard_size); in TEST() 403 ASSERT_EQ(0, pthread_attr_getguardsize(&attributes, &guard_size)); in TEST() 404 ASSERT_EQ(32*1024U, guard_size); in TEST() 408 ASSERT_EQ(0, pthread_attr_getguardsize(&attributes, &guard_size)); in TEST() 409 ASSERT_EQ(32*1024U + 1, guard_size); in TEST()
|
/bionic/libc/include/ |
D | pthread.h | 76 size_t guard_size; member 135 int pthread_attr_setguardsize(pthread_attr_t * attr, size_t guard_size); 136 int pthread_attr_getguardsize(pthread_attr_t const * attr, size_t * guard_size);
|