mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00: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:
parent
6d523660e9
commit
eb1321f291
@ -1,3 +1,8 @@
|
||||
2017-01-20 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
|
||||
(__lll_unlock_elision): Fix adapt_count decrement.
|
||||
|
||||
2017-01-14 Martin Galvan <martingalvan@sourceware.org>
|
||||
|
||||
* README.pretty-printers (Known issues): Warn about printers not
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user