This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add compiler barriers around modifications of the robust mutex list for pthread_mutex_trylock.
- From: Stefan Liebler <stli at linux dot ibm dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, Thomas Gleixner <tglx at linutronix dot de>, Sebastian Sewior <bigeasy at linutronix dot de>, Heiko Carstens <heiko dot carstens at de dot ibm dot com>, Torvald Riegel <triegel at redhat dot com>, "Carlos O'Donell" <carlos at redhat dot com>
- Date: Wed, 6 Feb 2019 12:25:31 +0100
- Subject: Re: [PATCH] Add compiler barriers around modifications of the robust mutex list for pthread_mutex_trylock.
- References: <fcc30533-41b1-a159-7019-290d2c489242@linux.ibm.com> <878syttn5y.fsf@oldenburg2.str.redhat.com>
On 02/06/2019 08:02 AM, Florian Weimer wrote:
* Stefan Liebler:
* nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
Add compiler barriers and comments.
Please file a bug on sourceware.org and reference it in the commit.
Thanks.
Florian
Okay. I've filed the following bug:
"Bug 24180 - pthread_mutex_trylock does not use the correct order of
instructions while maintaining the robust mutex list due to missing
compiler barriers."
https://sourceware.org/bugzilla/show_bug.cgi?id=24180