summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBDebugger.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-12-15 04:38:41 +0000
committerGreg Clayton <gclayton@apple.com>2011-12-15 04:38:41 +0000
commitf9322415dc9f6c1433fe728e0ebfa4659e594093 (patch)
treeaf4b44c4f9ae88fca1ff9c58d7e0d25f4cc8c155 /lldb/source/API/SBDebugger.cpp
parenta45ab503f6d00bd29c460f605061a8f9c37213cf (diff)
downloadbcm5719-llvm-f9322415dc9f6c1433fe728e0ebfa4659e594093.tar.gz
bcm5719-llvm-f9322415dc9f6c1433fe728e0ebfa4659e594093.zip
<rdar://problem/10584789>
Added a static memory pressure function in SBDebugger: void SBDebugger::MemoryPressureDetected () This can be called by applications that detect memory pressure to cause LLDB to release cached information. llvm-svn: 146640
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r--lldb/source/API/SBDebugger.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp
index b8be227f557..65357bb76ad 100644
--- a/lldb/source/API/SBDebugger.cpp
+++ b/lldb/source/API/SBDebugger.cpp
@@ -124,6 +124,12 @@ SBDebugger::Destroy (SBDebugger &debugger)
debugger.m_opaque_sp.reset();
}
+void
+SBDebugger::MemoryPressureDetected ()
+{
+ ModuleList::RemoveOrphanSharedModules();
+}
+
SBDebugger::SBDebugger () :
m_opaque_sp ()
{
OpenPOWER on IntegriCloud