forked from OSchip/llvm-project
Be sure to take the mutex when the destructor is called in case other threads are using these lists and those other threads have the mutex locked.
llvm-svn: 178262
This commit is contained in:
parent
efd98385c0
commit
ca5ce187fa
lldb
|
@ -38,6 +38,9 @@ public:
|
|||
|
||||
~SectionLoadList()
|
||||
{
|
||||
// Call clear since this takes a lock and clears the section load list
|
||||
// in case another thread is currently using this section load list
|
||||
Clear();
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -65,6 +65,9 @@ StackFrameList::StackFrameList
|
|||
//----------------------------------------------------------------------
|
||||
StackFrameList::~StackFrameList()
|
||||
{
|
||||
// Call clear since this takes a lock and clears the stack frame list
|
||||
// in case another thread is currently using this stack frame list
|
||||
Clear();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue