From 0cd70866041cb69b52e51ac0a486e16aee3ae84a Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Mon, 9 Apr 2012 20:22:01 +0000 Subject: Work around a deadlocking issue where "SBDebugger::MemoryPressureDetected ()" is being called and is causing a deadlock. We now just try and get the lock when trying to trim down the unique modules so we don't deadlock debugger GUI programs until we can find the root cause. llvm-svn: 154339 --- lldb/source/Core/Module.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lldb/source/Core/Module.cpp') diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 8ef4430119c..89325762d48 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -86,7 +86,8 @@ namespace lldb { void ClearModuleInfo (void) { - ModuleList::RemoveOrphanSharedModules(); + const bool mandatory = true; + ModuleList::RemoveOrphanSharedModules(mandatory); } void -- cgit v1.2.3