summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-07-23 15:47:19 +0000
committerGreg Clayton <gclayton@apple.com>2010-07-23 15:47:19 +0000
commit572404311a67b22557f3716bc0e8842250e05c85 (patch)
treedcbffd5adc61f2fa7f7e0834a7a0b36f4cf66f8e /llvm/lib/CodeGen/StackProtector.cpp
parent26661bca2075d2cab6c7d0106141c8892ecd1cbd (diff)
downloadbcm5719-llvm-572404311a67b22557f3716bc0e8842250e05c85.tar.gz
bcm5719-llvm-572404311a67b22557f3716bc0e8842250e05c85.zip
Remove a deadlock condition. A bit of explanation is needed: When calling
ThreadCancel in Host::WillTerminate g_monitor_thread may be blocked on a call to pthread_cond_wait (for example, line 640). Now, by default, when a cancellation request is serviced g_monitor_thread will again own the mutex guarding the condition variable it was waiting on. This causes the call to SetValue in Host::WillTerminate to hit a deadlock. The call to SetValue does not appear to be needed, so removing it solves the issue. Patch from Stephen Wilson. llvm-svn: 109228
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud