From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11570 Path: news.gmane.org!.POSTED!not-for-mail From: Jens Gustedt Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH 0/8] the new __lock and follow up patches Date: Fri, 23 Jun 2017 16:57:46 +0200 Organization: inria.fr Message-ID: <20170623165746.1d322d8c@inria.fr> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/QaJvA2e=TscYWNvKFu1IiJ="; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1498229881 4941 195.159.176.226 (23 Jun 2017 14:58:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 23 Jun 2017 14:58:01 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-11583-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jun 23 16:57:56 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1dOQ20-00019I-DA for gllmg-musl@m.gmane.org; Fri, 23 Jun 2017 16:57:56 +0200 Original-Received: (qmail 5626 invoked by uid 550); 23 Jun 2017 14:57:58 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 5602 invoked from network); 23 Jun 2017 14:57:58 -0000 X-IronPort-AV: E=Sophos;i="5.39,378,1493676000"; d="scan'208";a="280373946" In-Reply-To: X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) X-Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAACRQTFRFERslNjAsLTE9Ok9wUk9TaUs8iWhSrYZkj42Rz6aD3sGZ Xref: news.gmane.org gmane.linux.lib.musl.general:11570 Archived-At: --Sig_/QaJvA2e=TscYWNvKFu1IiJ= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Sorry, somehow the contents of this mail was eaten, sorry, so here is the real thing that I wanted to add to this patch series. This is merely a series to make a point such that I may have feedback if I am on the right track. The V2 patch is unchanged to what I have sent before and on that I add several ideas of what could be useful and easy to do without changing the lock-logic of musl too much. Some of these are merely independent and may be factored out, but it was easier to present them here as one series. Thanks Jens PS: I also see that 3/8 has been cut so I'll send it again On Fri, 23 Jun 2017 16:38:53 +0200 Jens Gustedt wrote: > Here comes a=20 >=20 > Jens Gustedt (8): > (V2) a new lock algorithm with lock value and CS counts in the same > atomic int > consistently use the LOCK an UNLOCK macros > revise the definition of multiple basic locks in the code > determine the existence of private futexes at the first thread > creation > separate the fast parts of __lock and __unlock into a .h file that > may be used by other TU > use the new lock algorithm for malloc > implement __unlock_requeue > implement the local lock for conditions with __lock & Co >=20 > src/dirent/__dirent.h | 2 +- > src/exit/at_quick_exit.c | 2 +- > src/exit/atexit.c | 2 +- > src/internal/__lock.h | 30 +++++++++++++++++++++ > src/internal/libc.h | 3 +++ > src/internal/pthread_impl.h | 16 ++++++++---- > src/locale/dcngettext.c | 2 +- > src/locale/locale_map.c | 2 +- > src/locale/setlocale.c | 2 +- > src/malloc/lite_malloc.c | 2 +- > src/malloc/malloc.c | 38 ++++++++++----------------- > src/misc/syslog.c | 2 +- > src/prng/random.c | 2 +- > src/stdio/ofl.c | 2 +- > src/thread/__lock.c | 52 > ++++++++++++++++++++++++++++++++----- > src/thread/__timedwait.c | 3 +-- > src/thread/__wait.c | 5 ++-- > src/thread/pthread_atfork.c | 2 +- > src/thread/pthread_barrier_wait.c | 3 +-- > src/thread/pthread_cond_timedwait.c | 49 > +++++++++++----------------------- > src/thread/pthread_create.c | 16 +++++++++--- > src/thread/pthread_detach.c | 4 +-- > src/thread/pthread_getschedparam.c | 4 +-- > src/thread/pthread_kill.c | 4 +-- > src/thread/pthread_setschedparam.c | 4 +-- > src/thread/pthread_setschedprio.c | 4 +-- > src/thread/sem_open.c | 2 +- > src/thread/synccall.c | 2 +- > src/time/__tz.c | 2 +- 29 files changed, 157 > insertions(+), 106 deletions(-) create mode 100644 > src/internal/__lock.h >=20 >=20 > base-commit: 8fe1f2d79b275b7f7fb0d41c99e379357df63cd9 Thanks Jens --=20 :: INRIA Nancy Grand Est ::: Camus ::::::: ICube/ICPS ::: :: ::::::::::::::: office Strasbourg : +33 368854536 :: :: :::::::::::::::::::::: gsm France : +33 651400183 :: :: ::::::::::::::: gsm international : +49 15737185122 :: :: http://icube-icps.unistra.fr/index.php/Jens_Gustedt :: --Sig_/QaJvA2e=TscYWNvKFu1IiJ= Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSN9stI2OFN1pLljN0P0+hp2tU34gUCWU0sagAKCRAP0+hp2tU3 4iJuAJwIpKaeJf4CQY8Ga/HvewDsvLYkIgCgignKxqMcG4p/V2C3mO4BL1fjNHE= =eomU -----END PGP SIGNATURE----- --Sig_/QaJvA2e=TscYWNvKFu1IiJ=--