mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
powerpc: Fix adapt_count update in __lll_unlock_elision
Commit e9a96ea1ac
had an error that
prevents adapt_count from being updated in __lll_unlock_elision.
This commit is contained in:
@ -35,7 +35,7 @@ __lll_unlock_elision (int *lock, short *adapt_count, int pshared)
|
||||
the mutex destruction requirements. */
|
||||
short __tmp = atomic_load_relaxed (adapt_count);
|
||||
if (__tmp > 0)
|
||||
atomic_store_relaxed (adapt_count, __tmp--);
|
||||
atomic_store_relaxed (adapt_count, __tmp - 1);
|
||||
|
||||
lll_unlock ((*lock), pshared);
|
||||
}
|
||||
|
Reference in New Issue
Block a user