mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 19:08:21 +08:00
Don't allow two threads to create/use the section list before it has been fully populated.
<rdar://problem/16937203> llvm-svn: 211043
This commit is contained in:
@@ -605,7 +605,10 @@ ObjectFile::GetSectionList()
|
||||
{
|
||||
ModuleSP module_sp(GetModule());
|
||||
if (module_sp)
|
||||
{
|
||||
lldb_private::Mutex::Locker locker(module_sp->GetMutex());
|
||||
CreateSections(*module_sp->GetUnifiedSectionList());
|
||||
}
|
||||
}
|
||||
return m_sections_ap.get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user