freebsd-nq/lib/libthr/thread
Dawid Gorecki 78df56ccfc libthr: Use kern.stacktop for thread stack calculation.
Use the new kern.stacktop sysctl to retrieve the address of stack top
instead of kern.usrstack. kern.usrstack does not have any knowledge
of the stack gap, so this can cause problems with thread stacks.
Using kern.stacktop sysctl should fix most of those problems.
kern.usrstack is used as a fallback when kern.stacktop cannot be read.

Rename usrstack variables to stacktop to reflect this change.

Fixes problems with firefox and thunderbird not starting with
stack gap enabled.

PR: 239873
Reviewed by: kib
Obtained from: Semihalf
Sponsored by: Stormshield
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D31898
2021-10-15 10:21:56 +02:00
..
Makefile.inc
thr_affinity.c
thr_attr.c Style. 2020-11-26 20:23:17 +00:00
thr_autoinit.c
thr_barrier.c
thr_barrierattr.c
thr_cancel.c Return success, instead of ESRCH, from pthread_cancel(3) applied to the 2020-02-13 23:22:12 +00:00
thr_clean.c
thr_concurrency.c
thr_cond.c
thr_condattr.c
thr_create.c Use sigfastblock(2) for masking signals in libthr. 2020-02-09 12:27:22 +00:00
thr_ctrdtr.c
thr_detach.c
thr_equal.c
thr_event.c
thr_exit.c
thr_fork.c libthr: wrap pdfork(2), same as fork(2). 2021-01-11 22:59:52 +02:00
thr_getcpuclockid.c
thr_getprio.c
thr_getschedparam.c
thr_getthreadid_np.c
thr_info.c Add pthread_getname_np() and pthread_setname_np() aliases for 2020-06-10 22:13:24 +00:00
thr_init.c libthr: Use kern.stacktop for thread stack calculation. 2021-10-15 10:21:56 +02:00
thr_join.c Add pthread_peekjoin_np(3). 2020-02-15 23:25:39 +00:00
thr_kern.c
thr_kill.c
thr_list.c
thr_main_np.c
thr_malloc.c libthr malloc: support recursion on thr_malloc_umtx. 2021-01-12 12:45:44 +02:00
thr_multi_np.c
thr_mutex.c Ensure that threading library is initialized in pthread_mutex_init(). 2020-11-30 17:00:36 +00:00
thr_mutexattr.c
thr_once.c
thr_printf.c
thr_private.h libthr: Use kern.stacktop for thread stack calculation. 2021-10-15 10:21:56 +02:00
thr_pshared.c
thr_pspinlock.c
thr_resume_np.c
thr_rtld.c rtld: make dlerror() thread-local 2021-04-10 17:33:34 +03:00
thr_rwlock.c
thr_rwlockattr.c
thr_self.c
thr_sem.c
thr_setprio.c
thr_setschedparam.c
thr_sig.c Use sigfastblock(2) for masking signals in libthr. 2020-02-09 12:27:22 +00:00
thr_single_np.c
thr_sleepq.c
thr_spec.c
thr_spinlock.c
thr_stack.c libthr: Use kern.stacktop for thread stack calculation. 2021-10-15 10:21:56 +02:00
thr_suspend_np.c
thr_switch_np.c
thr_symbols.c
thr_syscalls.c libthr: wrap pdfork(2), same as fork(2). 2021-01-11 22:59:52 +02:00
thr_umtx.c
thr_umtx.h
thr_yield.c