From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2453 invoked by alias); 25 Feb 2014 16:11:26 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 2437 invoked by uid 89); 25 Feb 2014 16:11:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,BODY_URI_ONLY,FREEMAIL_FROM,SPF_NEUTRAL autolearn=no version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: popelka.ms.mff.cuni.cz Received: from popelka.ms.mff.cuni.cz (HELO popelka.ms.mff.cuni.cz) (195.113.20.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 25 Feb 2014 16:11:24 +0000 Received: from domone.kolej.mff.cuni.cz (popelka.ms.mff.cuni.cz [195.113.20.131]) by popelka.ms.mff.cuni.cz (Postfix) with ESMTPS id D5C7726082; Tue, 25 Feb 2014 17:11:12 +0100 (CET) Received: by domone.kolej.mff.cuni.cz (Postfix, from userid 1000) id A324A5F802; Tue, 25 Feb 2014 17:11:12 +0100 (CET) Date: Tue, 25 Feb 2014 16:11:00 -0000 From: =?utf-8?B?T25kxZllaiBCw61sa2E=?= To: bugdal at aerifal dot cx Cc: glibc-bugs@sourceware.org Subject: Re: [Bug nptl/16630] Use SYSENTER for pthread_cond_broadcast/signal() (i.e. fix "FIXME: Ingo" issue) Message-ID: <20140225161112.GA21809@domone.podge> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00743.txt.bz2 On Tue, Feb 25, 2014 at 05:47:16AM +0000, bugdal at aerifal dot cx wrote: > http://sourceware.org/bugzilla/show_bug.cgi?id=16630 > > --- Comment #3 from Rich Felker --- > On Tue, Feb 25, 2014 at 04:51:18AM +0000, cjones.bugs at gmail dot com wrote: > > Do you happen to know if that's filed already? I'm curious what it would be > > replaced with. > > There is portable C code for all of these functions already and a > strong sentiment from some users and developers that the asm is > unnecessary, error-prone, and lags behind the C in getting fixes and > improvements. See the related thread on the libc-alpha mailing list: > > [RFC][BZ #16549, #16410] Remove pthread_(cond)wait assembly implementations? > > Basically I think if it could be demonstrated that the C performs just > as well (or within a margin of difference that's not significant), the > asm could be removed. > Actually c is around 5000 cycles faster. My guess is that its because assembly does extra syscall which has bigger impact than microoptimizations, I did not trace that yet.