mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +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:
@ -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>
|
2017-01-14 Martin Galvan <martingalvan@sourceware.org>
|
||||||
|
|
||||||
* README.pretty-printers (Known issues): Warn about printers not
|
* 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. */
|
the mutex destruction requirements. */
|
||||||
short __tmp = atomic_load_relaxed (adapt_count);
|
short __tmp = atomic_load_relaxed (adapt_count);
|
||||||
if (__tmp > 0)
|
if (__tmp > 0)
|
||||||
atomic_store_relaxed (adapt_count, __tmp--);
|
atomic_store_relaxed (adapt_count, __tmp - 1);
|
||||||
|
|
||||||
lll_unlock ((*lock), pshared);
|
lll_unlock ((*lock), pshared);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user