]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(__pthread_lock): Force lock->__status to be read from memory on every spin.
authorUlrich Drepper <drepper@redhat.com>
Mon, 19 Feb 2001 18:47:27 +0000 (18:47 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 19 Feb 2001 18:47:27 +0000 (18:47 +0000)
linuxthreads/spinlock.c

index 63f2ed16932177441cef3f98d84c744986f79a3b..f284b580d25de70e7ab43d18f0d1e1ba7b5a996a 100644 (file)
@@ -88,6 +88,7 @@ again:
          return;
        }
       }
+      __asm __volatile ("" : "=m" (lock->__status) : "0" (lock->__status));
     }
 
     lock->__spinlock += (spin_count - lock->__spinlock) / 8;