summaryrefslogtreecommitdiffstats
path: root/test/aligned_alloc.exp
diff options
context:
space:
mode:
authorJason Evans <je@facebook.com>2010-07-22 18:35:59 (GMT)
committerJason Evans <je@facebook.com>2010-07-22 18:35:59 (GMT)
commit2541e1b083a81f29554dcba7b2eaa1cc9889219a (patch)
tree5b940524e89934f7fcafa0e236f8d5f4a5e0aa98 /test/aligned_alloc.exp
parentb43b7750a6e08706aeb61d83ff1e1eb0c81c910b (diff)
downloadjemalloc-2541e1b083a81f29554dcba7b2eaa1cc9889219a.zip
jemalloc-2541e1b083a81f29554dcba7b2eaa1cc9889219a.tar.gz
jemalloc-2541e1b083a81f29554dcba7b2eaa1cc9889219a.tar.bz2
Add a missing mutex unlock in malloc_init_hard().
If multiple threads race to initialize malloc, the loser(s) busy-wait until initialization is complete. Add a missing mutex lock so that the loser(s) properly release the initialization mutex. Under some race conditions, this flaw could have caused one or more threads to become permanently blocked. Reported by Terrell Magee.
Diffstat (limited to 'test/aligned_alloc.exp')
0 files changed, 0 insertions, 0 deletions