Skip to content

#508 Unhandled System.ArgumentException and#524

Merged
mousetraps merged 2 commits intomicrosoft:masterfrom
mousetraps:i508
Oct 13, 2015
Merged

#508 Unhandled System.ArgumentException and#524
mousetraps merged 2 commits intomicrosoft:masterfrom
mousetraps:i508

Conversation

@mousetraps
Copy link
Copy Markdown
Contributor

System.IndexOutOfRangeException during LoadCachedAnalysis

  • We were simultaneously mutating the AnalysisLog from two threads. This
    caused various Deque properties like _data, _tail, etc. to get out of
    sync with one another. The fix is to lock LogItems whenever adding new
    events to the log.

fix #508

System.IndexOutOfRangeException during LoadCachedAnalysis
- We were simultaneously mutating the AnalysisLog from two threads. This
  caused various Deque properties like _data, _tail, etc. to get out of
  sync with one another. The fix is to lock LogItems whenever adding new
  events to the log.
@billti
Copy link
Copy Markdown
Member

billti commented Oct 12, 2015

👍

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll find a way to do this without locking, so it doesn't reduce performance

@mousetraps
Copy link
Copy Markdown
Contributor Author

Removed the locking behavior and added some comments. Instead we now just create RequireAnalysisUnits on the analysis thread.

mousetraps added a commit that referenced this pull request Oct 13, 2015
#508 Unhandled System.ArgumentException and
@mousetraps mousetraps merged commit 8a770b1 into microsoft:master Oct 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unhandled System.ArgumentException in LoadCachedAnalysis

3 participants