forked from OSchip/llvm-project
Add API logging for SBDebugger::MemoryPressureDetected.
llvm-svn: 158159
This commit is contained in:
parent
55d1145bd5
commit
aebdf1bed2
|
@ -147,7 +147,14 @@ SBDebugger::MemoryPressureDetected ()
|
|||
// non-mandatory. We have seen deadlocks with this function when called
|
||||
// so we need to safeguard against this until we can determine what is
|
||||
// causing the deadlocks.
|
||||
LogSP log (GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
|
||||
|
||||
const bool mandatory = false;
|
||||
if (log)
|
||||
{
|
||||
log->Printf ("SBDebugger::MemoryPressureDetected (), mandatory = %d", mandatory);
|
||||
}
|
||||
|
||||
ModuleList::RemoveOrphanSharedModules(mandatory);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue