summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-04-09 20:22:01 +0000
committerGreg Clayton <gclayton@apple.com>2012-04-09 20:22:01 +0000
commit0cd70866041cb69b52e51ac0a486e16aee3ae84a (patch)
tree3aa8c6eae52f42dbc99c5504da7e656314e3d6c4 /lldb/source/Core/Module.cpp
parent3ad11ff90f115a11149c5abe04d46579ff387ebd (diff)
downloadbcm5719-llvm-0cd70866041cb69b52e51ac0a486e16aee3ae84a.tar.gz
bcm5719-llvm-0cd70866041cb69b52e51ac0a486e16aee3ae84a.zip
<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
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r--lldb/source/Core/Module.cpp3
1 files changed, 2 insertions, 1 deletions
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
OpenPOWER on IntegriCloud