From 47e5d2a8b132c73bc0659baad25714326fb333c9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 24 May 2001 23:38:52 +0000 Subject: Update. 2001-05-24 Ulrich Drepper * spinlock.c (__pthread_lock) [HAS_COMPARE_AND_SWAP]: Before doing any serious work try once whether the lock is uncontested. Remove duplicate reading of __status before loop. Change suggested by Hans Boehm . * spinlock.h (__pthread_trylock): Remove need for oldstatus variable. (__pthread_alt_trylock): Likewise. --- linuxthreads/ChangeLog | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'linuxthreads/ChangeLog') diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 05ffaab5da..6282a60b8e 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,13 @@ +2001-05-24 Ulrich Drepper + + * spinlock.c (__pthread_lock) [HAS_COMPARE_AND_SWAP]: Before doing any + serious work try once whether the lock is uncontested. + Remove duplicate reading of __status before loop. + Change suggested by Hans Boehm . + + * spinlock.h (__pthread_trylock): Remove need for oldstatus variable. + (__pthread_alt_trylock): Likewise. + 2001-05-01 Kaz Kylheku Memory barrier overhaul following line by line inspection. -- cgit v1.2.3