From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7568 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Potential cleanup work post-1.1.9 Date: Sat, 2 May 2015 18:48:18 -0400 Message-ID: <20150502224818.GA22532@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1430606923 2910 80.91.229.3 (2 May 2015 22:48:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 May 2015 22:48:43 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7581-gllmg-musl=m.gmane.org@lists.openwall.com Sun May 03 00:48:38 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YogD7-0003mv-Oj for gllmg-musl@m.gmane.org; Sun, 03 May 2015 00:48:37 +0200 Original-Received: (qmail 7516 invoked by uid 550); 2 May 2015 22:48:35 -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 7484 invoked from network); 2 May 2015 22:48:31 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:7568 Archived-At: 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.