diff options
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r-- | lldb/source/Core/Module.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index e234a704148..0967ef7100d 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -218,6 +218,9 @@ Module::Module(const FileSpec& file_spec, Module::~Module() { + // Lock our module down while we tear everything down to make sure + // we don't get any access to the module while it is being destroyed + Mutex::Locker locker (m_mutex); // Scope for locker below... { Mutex::Locker locker (GetAllocationModuleCollectionMutex()); |