-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add | Adding disposable stack temp ref struct and use #1818
Conversation
Codecov ReportBase: 71.38% // Head: 71.69% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1818 +/- ##
==========================================
+ Coverage 71.38% 71.69% +0.31%
==========================================
Files 290 291 +1
Lines 61236 62406 +1170
==========================================
+ Hits 43712 44742 +1030
- Misses 17524 17664 +140
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDataReader.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Wraith2 , LGTM
/Azurepipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
@Wraith2 that failure on Mac machine is a bit concerning. Probably if I rerun it that will pass, but this test should not fail randomly, the failure mentions this as a critical issue. |
It was all green before I removed some spaces... The error is in mars concurrency and despite what the message says, that it shouldn't fail randomly, concurrency tests are hard to write and keep stable. Nothing in this change set should have any effect on concurrency or mars. |
We should spend some time in near future look into Active issues, some of them might not be an issue anymore, and also find a solution for these kinds of intermittent failures. |
fixes #1810
Adds a mutable ref struct to hold disposable things. The cancellation token registration is created and put into the struct. If the code reaches a Take method the value is taken by the caller. If the finally block of the using scope is reached while the value is still held the value will be disposed. This ensures that either the registration is passed to the context object or is correctly disposed.