mariadb/storage/xtradb/sync
Sergey Vojtovich c01c819209 Backport from 10.0:
MDEV-6483 - Deadlock around rw_lock_debug_mutex on PPC64

This problem affects only debug builds on PPC64.

There are at least two race conditions around
rw_lock_debug_mutex_enter and rw_lock_debug_mutex_exit:

- rw_lock_debug_waiters was loaded/stored without setting
  appropriate locks/memory barriers.
- there is a gap between calls to os_event_reset() and
  os_event_wait() and in such case we're supposed to pass
  return value of the former to the latter.

Fixed by replacing self-cooked spinlocks with system mutexes.
These days system mutexes offer much better performance. OTOH
performance is not that critical for debug builds.
2014-08-29 16:14:11 +04:00
..
sync0arr.c MDEV-6450 - MariaDB crash on Power8 when built with advance tool chain 2014-08-19 19:28:35 +03:00
sync0rw.c Backport from 10.0: 2014-08-29 16:14:11 +04:00
sync0sync.c Backport from 10.0: 2014-08-29 16:14:11 +04:00