|author||Konstantin Belousov <kib@FreeBSD.org>||2019-02-04 21:16:15 +0000|
|committer||Konstantin Belousov <kib@FreeBSD.org>||2019-02-04 21:16:15 +0000|
Fixes for very early use of the pthread_mutex_* and libthr malloc.
When libthr is statically linked into the binary, order of the constructors execution is not deterministic. It is possible for the application constructor to use pthread_mutex_* functions before the libthr initialization was done. Handle it by: - making thr_malloc.c locking functions operational when curthread is not yet set; - making __thr_malloc_init() idempotent, allowing more than one call to it; - unconditionally calling __thr_malloc_init() before initializing a process-private mutex. Reported and tested by: mmel Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes: svn path=/head/; revision=343754
Diffstat (limited to 'sys/netinet/tcp_stacks/sack_filter.c')
0 files changed, 0 insertions, 0 deletions