From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29852 invoked by alias); 5 Mar 2014 01:12:32 -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 29805 invoked by uid 48); 5 Mar 2014 01:12:27 -0000 From: "bugdal at aerifal dot cx" To: glibc-bugs@sourceware.org Subject: [Bug nptl/16657] Lock elision breaks pthread_mutex_trylock Date: Wed, 05 Mar 2014 01:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Version: 2.18 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugdal at aerifal dot cx X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg00026.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16657 --- Comment #4 from Rich Felker --- pthread_mutex_destroy has no mandatory errors and has no way it can fail except when undefined behavior has been invoked, so the cheapest solution would be making it always return 0 if elision is in use. -- You are receiving this mail because: You are on the CC list for the bug.