]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Set default stack size for Linux apps to 8MB. This matches Linux'
authorEdward Tomasz Napierala <trasz@FreeBSD.org>
Fri, 16 Oct 2020 11:23:30 +0000 (11:23 +0000)
committerEdward Tomasz Napierala <trasz@FreeBSD.org>
Fri, 16 Oct 2020 11:23:30 +0000 (11:23 +0000)
commit1c34dcb5325a19a983812abf137de47fc051ece8
treef1aa4b961daad8ad641db951aab2c9d51422f93e
parent1148702e43acd894bb45d77581cd8f733f8c6e44
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