mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Potential cleanup work post-1.1.9
Date: Sat, 2 May 2015 18:48:18 -0400	[thread overview]
Message-ID: <20150502224818.GA22532@brightrain.aerifal.cx> (raw)

Just some ideas to jot down somewhere public:

- Changing pthread_cancel signal handler to use mcontext_t members by
  name (with the name provided by pthread_arch.h) instead of offset
  macros and a fake overlaid array.

- Re-unifying x86_64 and x32 sigsetjmp.s by moving both saved values
  to after the signal mask.

- Providing inline atomics instead of runtime-switched for sh4a.

- Cleaning out cruft from struct __pthread, possibly condensing
  multiple locks, packing small/boolean values into chars or
  bitfields, etc.

- Evaluating whether it still makes sense to have struct __libc, or
  all the members in it.

- Eliminating float code in malloc on soft-float archs.

- Deduplicating atomic.h emulations of a_* in terms of a_cas, so that
  archs where everything is emulated in terms of a_cas can just define
  a_cas (much like how syscall.h and syscall_arch.h work now).

- Default atomics implementation for new archs to use (at least
  initially) based on __sync_* builtins.

- Bits deduplication.

- Possibly eliminating preference of globals over TLS, at least when
  it uglifies/enlarges/complexifies the code, for example use of
  libc.threads_minus_1 to determine whether to skip locks and
  libc.uselocale_cnt (instead of __pthread_self()->locale) in the
  CURRENT_LOCALE macro.



             reply	other threads:[~2015-05-02 22:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-02 22:48 Rich Felker [this message]
2015-05-18  5:24 ` 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=20150502224818.GA22532@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --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).