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
8 changes: 3 additions & 5 deletions Engine/StackResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,9 @@ private string ProcessFrameModuleOffset(Dictionary<string, DiaUtil> _diautils, D
// make sure we cleanup COM allocations for the resolved sym
Marshal.FinalReleaseComObject(mysym);
result = (inlineFrameAndSourceInfo + symbolizedFrame + "\t" + sourceInfo).Trim();
if (!resWasCached) { // we only need to add to cache if it was not already cached.
this.rwLockCachedSymbols.AcquireWriterLock(-1);
if (!this.cachedSymbols.ContainsKey(symKey)) this.cachedSymbols.Add(symKey, result);
this.rwLockCachedSymbols.ReleaseWriterLock();
}
this.rwLockCachedSymbols.AcquireWriterLock(-1);
if (!this.cachedSymbols.ContainsKey(symKey)) this.cachedSymbols.Add(symKey, result);
this.rwLockCachedSymbols.ReleaseWriterLock();
}

if (frameNum != int.MinValue) {
Expand Down
Loading