Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Change monitor test - #15727

Merged
kouvel merged 1 commit into
dotnet:masterfrom
kouvel:MonitorTestFix
Jan 5, 2018
Merged

kouvel merged 1 commit into
dotnet:masterfrom
kouvel:MonitorTestFix

Conversation

@kouvel

@kouvel kouvel commented Jan 4, 2018

Copy link
Copy Markdown

Relevant to https://github.com/dotnet/coreclr/issues/15592:

  • Not sure what is actually happening, guessing there is an exception during TryEnter() and the exception from Exit() from the finally block is hiding the actual exception
  • Moved TryEnter() to before the try block
  • Fixed pass/fail condition for some similar monitor tests

Relevant to https://github.com/dotnet/coreclr/issues/15592:
- Not sure what is actually happening, guessing there is an exception during TryEnter() and the exception from Exit() from the finally block is hiding the actual exception
- Moved TryEnter() to before the try block
- Fixed pass/fail condition for some similar monitor tests
@kouvel kouvel added this to the 2.1.0 milestone Jan 4, 2018
@kouvel kouvel self-assigned this Jan 4, 2018

@BruceForstall BruceForstall left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM. I guess if you're right, we'll see the "actual" error from TryEnter now?

@kouvel

kouvel commented Jan 4, 2018

Copy link
Copy Markdown
Author

Yea hope so. There should be no other way to reach the finally block without acquiring the lock and I don't see any issues in the monitor code.

@kouvel
kouvel merged commit b5a755e into dotnet:master Jan 5, 2018
@kouvel
kouvel deleted the MonitorTestFix branch January 5, 2018 01:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants