diff options
author | Greg Clayton <gclayton@apple.com> | 2011-12-15 04:38:41 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-12-15 04:38:41 +0000 |
commit | f9322415dc9f6c1433fe728e0ebfa4659e594093 (patch) | |
tree | af4b44c4f9ae88fca1ff9c58d7e0d25f4cc8c155 /lldb/source/API/SBDebugger.cpp | |
parent | a45ab503f6d00bd29c460f605061a8f9c37213cf (diff) | |
download | bcm5719-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.cpp | 6 |
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 () { |