[Lldb-commits] [lldb] r222221 - Make the mutex ivar in Unwind recursive so we don't have a thread

Jason Molenda jmolenda at apple.com
Mon Nov 17 20:57:28 PST 2014


Author: jmolenda
Date: Mon Nov 17 22:57:28 2014
New Revision: 222221

URL: http://llvm.org/viewvc/llvm-project?rev=222221&view=rev
Log:
Make the mutex ivar in Unwind recursive so we don't have a thread
deadlocking when we have the base Unwind class and the HistoryUnwind
subclass both trying to acquire the lock on the same thread to clear
their respective ivar state.
<rdar://problem/18986350> 

Modified:
    lldb/trunk/include/lldb/Target/Unwind.h

Modified: lldb/trunk/include/lldb/Target/Unwind.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Target/Unwind.h?rev=222221&r1=222220&r2=222221&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Target/Unwind.h (original)
+++ lldb/trunk/include/lldb/Target/Unwind.h Mon Nov 17 22:57:28 2014
@@ -27,7 +27,7 @@ protected:
     //------------------------------------------------------------------
     Unwind(Thread &thread) :
         m_thread (thread),
-        m_unwind_mutex()
+        m_unwind_mutex(Mutex::eMutexTypeRecursive)
     {
     }
 





More information about the lldb-commits mailing list