[Lldb-commits] [lldb] r205734 - Disable JITLoaderGDB on "vendor == apple" for now due to performance slowdowns for every first run process as a global name lookup in all shared libraries if performed.
Greg Clayton
gclayton at apple.com
Mon Apr 7 13:13:57 PDT 2014
Author: gclayton
Date: Mon Apr 7 15:13:57 2014
New Revision: 205734
URL: http://llvm.org/viewvc/llvm-project?rev=205734&view=rev
Log:
Disable JITLoaderGDB on "vendor == apple" for now due to performance slowdowns for every first run process as a global name lookup in all shared libraries if performed.
<rdar://problem/16542894>
Modified:
lldb/trunk/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp
Modified: lldb/trunk/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp?rev=205734&r1=205733&r2=205734&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp (original)
+++ lldb/trunk/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp Mon Apr 7 15:13:57 2014
@@ -294,7 +294,10 @@ JITLoaderGDB::GetPluginNameStatic()
JITLoaderSP
JITLoaderGDB::CreateInstance(Process *process, bool force)
{
- JITLoaderSP jit_loader_sp(new JITLoaderGDB(process));
+ JITLoaderSP jit_loader_sp;
+ ArchSpec arch (process->GetTarget().GetArchitecture());
+ if (arch.GetTriple().getVendor() != llvm::Triple::Apple)
+ jit_loader_sp.reset(new JITLoaderGDB(process));
return jit_loader_sp;
}
More information about the lldb-commits
mailing list