about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-03-04 18:20:46 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-03-05 09:11:11 -0800
commite6acff828787b9b6c65ef66942f45e58b2f22ad6 (patch)
tree18a6b8ac782598961cc0f8561ae3db9934d1c3ca /src/rustllvm/ExecutionEngineWrapper.cpp
parentd8bd8de82e19702ad26fff704ff9a4890ebe1bf7 (diff)
downloadrust-e6acff828787b9b6c65ef66942f45e58b2f22ad6.tar.gz
rust-e6acff828787b9b6c65ef66942f45e58b2f22ad6.zip
native: Fix usage of a deallocated mutex
When the timer_helper thread exited, it would attempt to re-acquire the global
task count mutex, but the mutex had previously been deallocated, leading to
undefined behavior of the mutex, and in some cases deadlock.

Another mutex is used to coordinate shutting down the timer helper thread.

Closes #12699
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions