From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4715 Path: news.gmane.org!not-for-mail From: Justin Cormack Newsgroups: gmane.linux.lib.musl.general Subject: Re: Transition path for removing lazy init of thread pointer Date: Mon, 24 Mar 2014 23:44:57 +0000 Message-ID: References: <20140324174915.GA1263@brightrain.aerifal.cx> <20140324230405.GA23163@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1395704702 4896 80.91.229.3 (24 Mar 2014 23:45:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Mar 2014 23:45:02 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4719-gllmg-musl=m.gmane.org@lists.openwall.com Tue Mar 25 00:45:12 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WSEYJ-0001IS-6D for gllmg-musl@plane.gmane.org; Tue, 25 Mar 2014 00:45:11 +0100 Original-Received: (qmail 9594 invoked by uid 550); 24 Mar 2014 23:45:10 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 9586 invoked from network); 24 Mar 2014 23:45:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=specialbusservice.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=TMWIUFiGVzMYectUgkYV1WyuqGDgXbzi+0Gz92SP1i0=; b=ielBqhllil0uI0sP+sJi60bKQPW+PO4OP8yWxzTzoHteMdeC6qpYaJnlUwTVD+uiaK vXZ0O++zCXeGnKKEvGWTM7FkMQh7LfEKG9z/964nCl9wiQNSIFChWy4EmIy6JSO2IVCZ KVTdVibWtqnVLOOpQrIgSh87Mpj2NbvLZ5KLY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=TMWIUFiGVzMYectUgkYV1WyuqGDgXbzi+0Gz92SP1i0=; b=Mgd6DSo2LgOSvPmoHeLgwC75a1235JrxdtmMslvXLAA8pIi1AsvTn6uK2GIB7CKiS/ pJmTg3HUckfDctg7krtjY92cQLZVbXAVPkQB+mmJ5lyD8a3vGLsAfr15qUdkfkrZpwXV eiY//Bqei4r1ocfoIFAM79zPWCCKlhzXn2LveWLw2VilURDhRtpEMr1LsrTKC5d0Rndr 5Xt3dqWIxaLUGI0KLuNqDCvA4xWDeRIqBmpBAoqK2DDw1X4f2FIvNYh0Z4/YFyJf6DG9 R3wBlk7NMUHil7wq8m1MJWt+YFDsTfDVG3033kq3jQQu1+CUb/i4RrUGGpMrR0qauQM1 x+KA== X-Gm-Message-State: ALoCoQle0kYx8RIyu/+jzpSrgd6zh9T+vuRzMf21Hl7VWQeaCL7Kkrq89SyvR5ODLhWKmtKAnbbW X-Received: by 10.68.136.2 with SMTP id pw2mr5639223pbb.167.1395704697610; Mon, 24 Mar 2014 16:44:57 -0700 (PDT) In-Reply-To: <20140324230405.GA23163@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:4715 Archived-At: On Mon, Mar 24, 2014 at 11:04 PM, Rich Felker wrote: > > At this point we now have two mandatory syscalls at startup on most > archs (just one where setting the thread pointer is entirely a > userspace operation). The second syscall is set_tid_address, and it > seems like it should only be needed it pthread_create is being used > (to that pthread_join will work), but it serves a second purpose of > standing in for gettid() too. We could, however, eliminate it in some > cases:x Which archs is it userspace only? Any idea what the performance benefit of the optimisations might be? Static linked non threaded programs sounds like a good target. Justin