From: Gregor Richards <gr@purdue.edu>
To: musl@lists.openwall.com
Subject: Re: thread local storage
Date: Mon, 16 Jul 2012 14:57:22 -0400 [thread overview]
Message-ID: <50046412.4060609@purdue.edu> (raw)
In-Reply-To: <50046559.3090204@barfooze.de>
On 07/16/2012 03:02 PM, John Spencer wrote:
> 2 out of 14 sabotage followers wanted to use a musl-based system as a
> platform for luajit (and then were never seen again).
> so i looked into adding it...
>
> luajit builds without problems on musl, but then crashes due to a lack
> of TLS.
>
> is it planned to add this feature ? iirc it wasn't mentioned on the
> latest roadmap...
>
>
>
With a quick perusal of the LuaJIT source, this is the only instance of
TLS I see:
#if LJ_UNWIND_EXT
#if LJ_TARGET_OSX || defined(__OpenBSD__)
/* Sorry, no thread safety for OSX. Complain to Apple, not me. */
static _Unwind_Exception static_uex;
#else
static __thread _Unwind_Exception static_uex;
#endif
Convince it to use the same exception as OS X and OpenBSD and you should
be in business.
"Complain to Apple, not me" is an odd way to say "I am too lazy to use
standard interfaces." TLS has come up on the IRC chat, but I don't
recall what the conclusions were regarding future implementation or not.
With valediction,
- Gregor Richards
next prev parent reply other threads:[~2012-07-16 18:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-16 19:02 John Spencer
2012-07-16 18:57 ` Gregor Richards [this message]
2012-07-16 20:09 ` Rich Felker
2012-07-16 21:30 ` John Spencer
2012-07-16 22:18 ` Rich Felker
2012-07-16 19:58 ` Justin Cormack
2012-07-16 20:03 ` Rich Felker
2012-07-16 22:06 ` John Spencer
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=50046412.4060609@purdue.edu \
--to=gr@purdue.edu \
--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).