freebsd-skq/lib/libthr
Konstantin Belousov 85d028223b libthr malloc: support recursion on thr_malloc_umtx.
One possible way the recursion can happen is during fork: suppose
that fork is called from early code that did not triggered
jemalloc(3) initialization yet. Then we lock thr_malloc lock, and
call malloc_prefork() that might require initialization of jemalloc
pthread_mutexes, calling into libthr malloc. It is safe to allow
recursion for this occurence.

PR:	252579
Reported by:	Vasily Postnicov <shamaz.mazum@gmail.com>
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2021-01-12 12:45:44 +02:00
..
arch Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
sys
tests
thread libthr malloc: support recursion on thr_malloc_umtx. 2021-01-12 12:45:44 +02:00
libthr.3
Makefile
Makefile.depend
plockstat.d
pthread.map