From: Justin Cormack <justin@specialbusservice.com>
To: musl@lists.openwall.com
Subject: Re: Transition path for removing lazy init of thread pointer
Date: Mon, 24 Mar 2014 23:44:57 +0000 [thread overview]
Message-ID: <CAK4o1WwtUVy5z-0f1MDN8nNwcw=tJEjHMik4NFBbFCMHZRiYFg@mail.gmail.com> (raw)
In-Reply-To: <20140324230405.GA23163@brightrain.aerifal.cx>
On Mon, Mar 24, 2014 at 11:04 PM, Rich Felker <dalias@aerifal.cx> 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
next prev parent reply other threads:[~2014-03-24 23:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-24 17:49 Rich Felker
2014-03-24 23:04 ` Rich Felker
2014-03-24 23:44 ` Justin Cormack [this message]
2014-03-25 0:01 ` Laurent Bercot
2014-03-25 1:55 ` Rich Felker
2014-03-25 6:35 ` Laurent Bercot
2014-03-25 7:11 ` Rich Felker
2014-03-25 0:58 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAK4o1WwtUVy5z-0f1MDN8nNwcw=tJEjHMik4NFBbFCMHZRiYFg@mail.gmail.com' \
--to=justin@specialbusservice.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).