From owner-freebsd-current@FreeBSD.ORG Mon Sep 22 03:36:30 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 79AEDD22; Mon, 22 Sep 2014 03:36:30 +0000 (UTC) Received: from aslan.scsiguy.com (mail.scsiguy.com [70.89.174.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 27E369D; Mon, 22 Sep 2014 03:36:29 +0000 (UTC) Received: from [192.168.0.61] (jt-mbp.home.scsiguy.org [192.168.0.61]) (authenticated bits=0) by aslan.scsiguy.com (8.14.9/8.14.9) with ESMTP id s8M3aPFU078926 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 21 Sep 2014 21:36:26 -0600 (MDT) (envelope-from gibbs@scsiguy.com) Content-Type: multipart/signed; boundary="Apple-Mail=_5F347363-3BBD-4CAC-80DA-C602E0339DFA"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: libthr and main thread stack size From: "Justin T. Gibbs" In-Reply-To: <20140920170658.GE2210@kib.kiev.ua> Date: Sun, 21 Sep 2014 21:36:25 -0600 Message-Id: References: <53E36E84.4060806@ivan-labs.com> <20140916081324.GQ2737@kib.kiev.ua> <5242716.s4iaScq0Bu@ralph.baldwin.cx> <20140920170658.GE2210@kib.kiev.ua> To: Konstantin Belousov X-Mailer: Apple Mail (2.1878.6) Cc: "Ivan A. Kosarev" , freebsd-current@freebsd.org, doc@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 03:36:30 -0000 --Apple-Mail=_5F347363-3BBD-4CAC-80DA-C602E0339DFA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Sep 20, 2014, at 11:06 AM, Konstantin Belousov = wrote: > On Fri, Sep 19, 2014 at 03:27:25PM -0400, John Baldwin wrote: >> I suspect it was done out of reasons of being overly conservative in >> interpreting RLIMIT_STACK. I think it is quite surprising behavior >> though and would rather we make your option the default and implement >> what the Open Group says above. >=20 > Ok, below is the patch. I felt bad about adding yet another magic and > undocumented tunable to our libthr. Since there seems to be no > alternative than a tunable to enforce old behaviour, I documented > the quirks I am aware of. Why do we need to support the old behavior? Any program that ran in the = old model will run in the new. In the unlikely event that someone was = using the old scheme for administrative control, there are other = mechanisms for this already available that we can point them to instead. =97 Justin --Apple-Mail=_5F347363-3BBD-4CAC-80DA-C602E0339DFA Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJUH5k5AAoJED9n8CuvaSf4r3QH/imMeCsoVyLJQC4JO9vDum8B DEHcPN0A4j7eZaO9itzbGY9R7Ie9F+orBsFra+ucCBTwSvzpD5YXTsnaY+oS+rV3 a0iefizkVpRrC3GOe9g5cjtJ5bHIKl2Oi7pfxvXEQTOdjwniNHOXozG0CCWQPX52 iIoLJ4q98acKxb/qTm5fsy0Xyx6exmk1YOY6o9PKv6te6ane81BnmPS+wmdD98nH 7q4qME8Y379Ul1NIo1crkw7qVu6jZZHgiEaX/BDDdE/tvx2F6Ot+PsJ6d79ilM7z Wat1t6GCcZAbytNjqR9sgZX8cpY43jgXzjceBA6uGJd/wPRxUm/gZhIN5QGs80k= =o76e -----END PGP SIGNATURE----- --Apple-Mail=_5F347363-3BBD-4CAC-80DA-C602E0339DFA--