]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Set default stack size for Linux apps to 8MB. This matches Linux'
authortrasz <trasz@FreeBSD.org>
Fri, 16 Oct 2020 11:23:30 +0000 (11:23 +0000)
committertrasz <trasz@FreeBSD.org>
Fri, 16 Oct 2020 11:23:30 +0000 (11:23 +0000)
commit4eeac89aace670cde0a22d9862d34a414d0a3c91
treef1aa4b961daad8ad641db951aab2c9d51422f93e
parent4aac162bfedef00d26b77c4dfdbebd48b60e8763
Set default stack size for Linux apps to 8MB.  This matches Linux'
defaults, makes core files smaller, and fixes applications which use
pthread_join(3) in a wrong way, namely Steam.

This is based on a patch submitted by Jason Yang, which I've reworked
to set the limit instead of only changing the value reported (which
is enough to fix the bug for Linux pthreads, but could be confusing).

PR: 248225
Submitted by: Jason_YH_Yang at wistron.com (earlier version)
Analyzed by: Alex S <iwtcex@gmail.com>
Reviewed by: emaste
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D26778
sys/compat/linux/linux_emul.c
sys/compat/linux/linux_mib.c
sys/compat/linux/linux_mib.h