Skip to content

Commit

Permalink
Remove static field that introduces threading issues (#696)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbevain authored Oct 13, 2020
1 parent a1105a4 commit 24c6ce4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions symbols/pdb/Microsoft.Cci.Pdb/PdbFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ static IntHashTable LoadNameStream(BitAccess bits) {
return ht;
}

private static PdbFunction match = new PdbFunction();

private static int FindFunction(PdbFunction[] funcs, ushort sec, uint off) {
match.segment = sec;
match.address = off;
var match = new PdbFunction {
segment = sec,
address = off
};

return Array.BinarySearch(funcs, match, PdbFunction.byAddress);
}
Expand Down

0 comments on commit 24c6ce4

Please sign in to comment.