<rdar://problem/11202426>

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
This commit is contained in:
Greg Clayton
2012-04-09 20:22:01 +00:00
parent 3ad11ff90f
commit 0cd7086604
5 changed files with 29 additions and 10 deletions

View File

@@ -520,7 +520,8 @@ public:
// the global shared module list
if (m_cleanup_option.GetOptionValue ())
{
ModuleList::RemoveOrphanSharedModules();
const bool mandatory = true;
ModuleList::RemoveOrphanSharedModules(mandatory);
}
result.GetOutputStream().Printf("%u targets deleted.\n", (uint32_t)num_targets_to_delete);
result.SetStatus(eReturnStatusSuccessFinishResult);