From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMzgA-00071Z-66 for qemu-devel@nongnu.org; Tue, 12 Jul 2016 11:33:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMzg6-0006D6-1T for qemu-devel@nongnu.org; Tue, 12 Jul 2016 11:32:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMzg5-0006D0-PY for qemu-devel@nongnu.org; Tue, 12 Jul 2016 11:32:53 -0400 References: <1468228082-7492-1-git-send-email-pl@kamp.de> <1468228082-7492-2-git-send-email-pl@kamp.de> <5783CBD4.2000205@redhat.com> <57850082.1040502@kamp.de> <578501B2.5000703@kamp.de> From: Eric Blake Message-ID: <57850DA3.8020209@redhat.com> Date: Tue, 12 Jul 2016 09:32:51 -0600 MIME-Version: 1.0 In-Reply-To: <578501B2.5000703@kamp.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="d47ADq6eUJFWUJCk57tqWtq8EVaBBcqRO" Subject: Re: [Qemu-devel] [PATCH V4 1/6] oslib-posix: add helpers for stack alloc and free List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven , qemu-devel@nongnu.org Cc: kwolf@redhat.com, mreitz@redhat.com, pbonzini@redhat.com, mst@redhat.com, dgilbert@redhat.com, peter.maydell@linaro.org, rth@twiddle.net, armbru@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --d47ADq6eUJFWUJCk57tqWtq8EVaBBcqRO From: Eric Blake To: Peter Lieven , qemu-devel@nongnu.org Cc: kwolf@redhat.com, mreitz@redhat.com, pbonzini@redhat.com, mst@redhat.com, dgilbert@redhat.com, peter.maydell@linaro.org, rth@twiddle.net, armbru@redhat.com Message-ID: <57850DA3.8020209@redhat.com> Subject: Re: [PATCH V4 1/6] oslib-posix: add helpers for stack alloc and free References: <1468228082-7492-1-git-send-email-pl@kamp.de> <1468228082-7492-2-git-send-email-pl@kamp.de> <5783CBD4.2000205@redhat.com> <57850082.1040502@kamp.de> <578501B2.5000703@kamp.de> In-Reply-To: <578501B2.5000703@kamp.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 07/12/2016 08:41 AM, Peter Lieven wrote: >> I wonder if the _SC_THREAD_STACK_MIN constant exists if there is no mi= nimum? >=20 > Update: >=20 > glibc basically does the following: >=20 > static gulong g_thread_min_stack_size =3D 0; >=20 > #ifdef _SC_THREAD_STACK_MIN > g_thread_min_stack_size =3D MAX (sysconf (_SC_THREAD_STACK_MIN), 0); > #endif /* _SC_THREAD_STACK_MIN */ >=20 > stack_size =3D MAX (g_thread_min_stack_size, stack_size); >=20 >=20 > So we should do sth similar, I think?! Yes, that would be a good pattern to copy. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --d47ADq6eUJFWUJCk57tqWtq8EVaBBcqRO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJXhQ2jAAoJEKeha0olJ0NqKbYH/jRzAc+NpJ+zgGyDH/PY8Bmp 2FMDwHbTe9ft9UF0XKy6mTyzC+js4SqVhPsLMX/APQhuN9hldfyBLv0fDXJpjzp4 TByUnY9WLZErngCVxvYSr5EaiQgJKnGX33hugGiYgJsHyXYNTb+MS3PFvVr12H0K coH3YB/XU9RRmgmLBSNxVC1FvxwGcI+/sSy02seim4RodbJXubUVjiOydmvKz3hK SnTLIsenT+3J/TtcQaSKRf8P9QRfJ/peUV17meVPwQF8Ofl7QoRqKefz8WU+rwPV B6p5at5mGTq6PzLgvkEUzVGvEixzTEBtRYOoT70L3lSRC7Fi3tV3E/NisJocGFc= =R9aA -----END PGP SIGNATURE----- --d47ADq6eUJFWUJCk57tqWtq8EVaBBcqRO--