forked from OSchip/llvm-project
[SymbolFile] SymbolFileDWARF::ParseLineTable should lock its module
As of svn rL367298, SymbolFileDWARF locks the module in many cases where it needs to parse some aspect of the DWARF symbol file. SymbolFileDWARF::ParseLineTable needs to lock the module because SymbolVendor::ParseLineTable no longer locks it. llvm-svn: 367358
This commit is contained in:
parent
8b58371fae
commit
0723173114
|
@ -928,7 +928,7 @@ static void ParseDWARFLineTableCallback(dw_offset_t offset,
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SymbolFileDWARF::ParseLineTable(CompileUnit &comp_unit) {
|
bool SymbolFileDWARF::ParseLineTable(CompileUnit &comp_unit) {
|
||||||
ASSERT_MODULE_LOCK(this);
|
std::lock_guard<std::recursive_mutex> guard(GetModuleMutex());
|
||||||
if (comp_unit.GetLineTable() != nullptr)
|
if (comp_unit.GetLineTable() != nullptr)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue