Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,12 @@ private void ParsePgoMethods()

PgoInfoKey key = new PgoInfoKey(mdReader, owningType, methodHandle, methodTypeArgs);
PgoInfo info = new PgoInfo(key, this, pgoFormatVersion, Image, pgoOffset);
_pgoInfos.Add(key, info);

// Since we do non-assembly qualified name based matching for generic instantiations, we can have conflicts.
// This is rare, so the current strategy is to just ignore them. This will allow the tooling to work, although
// the text output for PGO will be slightly wrong.
if (!_pgoInfos.ContainsKey(key))
_pgoInfos.Add(key, info);
curParser = allEntriesEnum.GetNext();
}

Expand Down