diff options
author | Greg Clayton <gclayton@apple.com> | 2010-07-23 15:47:19 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-07-23 15:47:19 +0000 |
commit | 572404311a67b22557f3716bc0e8842250e05c85 (patch) | |
tree | dcbffd5adc61f2fa7f7e0834a7a0b36f4cf66f8e /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 26661bca2075d2cab6c7d0106141c8892ecd1cbd (diff) | |
download | bcm5719-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/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions