freebsd-nq/lib/libthr
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
..
arch Remove the last users of ARM_TP_ADDRESS 2021-04-08 07:52:54 +00:00
sys
tests
thread libthr: Use kern.stacktop for thread stack calculation. 2021-10-15 10:21:56 +02:00
libthr.3 libthr(3): explain some internals of the locks implementation 2021-10-05 06:39:53 +03:00
Makefile libthr: work around an ASAN false-positive 2021-08-02 14:33:24 +01:00
Makefile.depend
plockstat.d
pthread.map rtld: workaround for broken ABI 2021-04-10 17:33:33 +03:00