1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

libthr: Add src.conf variable WITHOUT_PTHREADS_ASSERTIONS

(cherry picked from commit 642cd51102)
This commit is contained in:
Greg Becker 2023-07-06 19:30:02 -05:00 committed by Konstantin Belousov
parent f25a4bbf5d
commit f0404eb39e
4 changed files with 5 additions and 1 deletions

View File

@ -45,8 +45,10 @@ SYMBOL_MAPS=${.CURDIR}/pthread.map
MAN= libthr.3
.if ${MK_PTHREADS_ASSERTIONS} != "no"
# enable extra internal consistency checks
CFLAGS+=-D_PTHREADS_INVARIANTS
.endif
PRECIOUSLIB=

View File

@ -120,7 +120,7 @@ __weak_reference(_pthread_mutex_getyieldloops_np, pthread_mutex_getyieldloops_np
__weak_reference(_pthread_mutex_isowned_np, pthread_mutex_isowned_np);
static void
mutex_init_link(struct pthread_mutex *m)
mutex_init_link(struct pthread_mutex *m __unused)
{
#if defined(_PTHREADS_INVARIANTS)

View File

@ -160,6 +160,7 @@ __DEFAULT_YES_OPTIONS = \
PMC \
PORTSNAP \
PPP \
PTHREADS_ASSERTIONS \
QUOTAS \
RADIUS_SUPPORT \
RBOOTD \

View File

@ -0,0 +1 @@
Disable debugging assertions in pthreads library.