summaryrefslogtreecommitdiff
path: root/sql/item_subselect.h
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2016-08-09 16:15:10 +0300
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2016-08-09 23:34:44 +0300
commit5ad02062d928cccbd29c0a2db6f0f7ceb33195d1 (patch)
tree811f647f7fd41190566370fa3b8bf793c4d8717c /sql/item_subselect.h
parent0098d789c9d8be15d62230289f603ac8f3d5b275 (diff)
downloadmariadb-git-5ad02062d928cccbd29c0a2db6f0f7ceb33195d1.tar.gz
MDEV-10341: InnoDB: Failing assertion: mutex_own(mutex) - mutex_exit_funcmariadb-5.5.51
Fix memory barrier issues on releasing mutexes. We must have a full memory barrier between releasing a mutex lock and reading its waiters. This prevents us from missing to release waiters due to reading the number of waiters speculatively before releasing the lock. If threads try and wait between us reading the waiters count and releasing the lock, those threads might stall indefinitely. Also, we must use proper ACQUIRE/RELEASE semantics for atomic operations, not ACQUIRE/ACQUIRE.
Diffstat (limited to 'sql/item_subselect.h')
0 files changed, 0 insertions, 0 deletions