Home
last modified time | relevance | path

Searched refs:guardsize (Results 1 – 6 of 6) sorted by relevance

/netbsd-src/tests/lib/libpthread/
H A Dt_stack.c59 size_t guardsize; /* default guard size */ member
118 unsigned guardsize; in getdefaultguardsize() local
119 size_t len = sizeof(guardsize); in getdefaultguardsize()
121 RL(sysctl(mib, __arraycount(mib), &guardsize, &len, NULL, 0)); in getdefaultguardsize()
122 ATF_REQUIRE_EQ_MSG(len, sizeof(guardsize), in getdefaultguardsize()
123 "len=%zu sizeof(guardsize)=%zu", len, sizeof(guardsize)); in getdefaultguardsize()
129 ATF_CHECK_EQ_MSG(guardsize, pthread__guardsize, in getdefaultguardsize()
131 guardsize, pthread__guardsize); in getdefaultguardsize()
133 return guardsize; in getdefaultguardsize()
171 C->guardsize = getdefaultguardsize(); in init()
[all …]
H A Dt_join.c152 size_t stacksize, guardsize; in threadfunc2() local
159 ATF_REQUIRE(pthread_attr_getguardsize(&attr, &guardsize) == 0); in threadfunc2()
160 ATF_REQUIRE(guardsize == STACKSIZE * (j + 2)); in threadfunc2()
/netbsd-src/lib/libpthread/
H A Dpthread.c329 size_t stacksize, guardsize; in pthread__getstack() local
335 pthread_attr_getguardsize(attr, &guardsize); in pthread__getstack()
337 guardsize = 0; in pthread__getstack()
341 guardsize = pthread__guardsize; in pthread__getstack()
349 newthread->pt_guardsize == guardsize) in pthread__getstack()
367 guardsize = ((guardsize - 1) | (pthread__pagesize - 1)) + 1; in pthread__getstack()
368 stackbase = mmap(NULL, stacksize + guardsize, in pthread__getstack()
381 stackbase2 = (char *)stackbase + guardsize; in pthread__getstack()
383 if (allocated && guardsize && in pthread__getstack()
384 mprotect(redzone, guardsize, PROT_NONE) == -1) { in pthread__getstack()
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc4522 INTERCEPTOR_PTHREAD_ATTR_GET(guardsize, sizeof(SIZE_T))
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_common_interceptors.inc4765 INTERCEPTOR_PTHREAD_ATTR_GET(guardsize, sizeof(SIZE_T))
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_common_interceptors.inc4664 INTERCEPTOR_PTHREAD_ATTR_GET(guardsize, sizeof(SIZE_T))