This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix for PR55561 race condition in libgomp
- From: Dmitry Vyukov <dvyukov at google dot com>
- To: VandeVondele Joost <joost dot vandevondele at mat dot ethz dot ch>
- Cc: Jakub Jelinek <jakub at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "dvyukov at gcc dot gnu dot org" <dvyukov at gcc dot gnu dot org>
- Date: Fri, 1 Feb 2013 23:59:21 +0400
- Subject: Re: Fix for PR55561 race condition in libgomp
- References: <908103EDB4893A42920B21D3568BFD9308C78C5D@MBX11.d.ethz.ch> <20130131145817.GI4385@tucnak.redhat.com> <908103EDB4893A42920B21D3568BFD9308C78C7F@MBX11.d.ethz.ch>
LGTM
On Thu, Jan 31, 2013 at 8:54 PM, VandeVondele Joost
<joost.vandevondele@mat.ethz.ch> wrote:
> The updated changelog entry is below, but somebody with write access should do the commit, please.
>
> 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
> Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
>
> PR libgomp/55561
> * config/linux/wait.h (do_spin): Use atomic load for addr.
> * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
> for intptr and ptrlock.
> * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
> for ptrlock.