-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Replace SafeLocalAllocHandle in System.Diagnostics.PerformanceCounter
#82456
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
Replace SafeLocalAllocHandle in System.Diagnostics.PerformanceCounter
#82456
Conversation
53e876f to
ddd8f6c
Compare
ddd8f6c to
25c0b88
Compare
|
Tagging subscribers to this area: @dotnet/area-system-diagnostics-performancecounter Issue DetailsFollow-up #82411 We don't need a Additionally change type of cc: @stephentoub
|
...ies/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/SharedPerformanceCounter.cs
Outdated
Show resolved
Hide resolved
...aries/System.Diagnostics.PerformanceCounter/src/System.Diagnostics.PerformanceCounter.csproj
Outdated
Show resolved
Hide resolved
stephentoub
left a comment
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.
LGTM other than two comments.
stephentoub
left a comment
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.
Follow-up #82411
We don't need a
SafeLocalAllocHandlesince we own the handle and immediately callDangerousGetHandle.Additionally change type of
Interop+Kernel32+SECURITY_ATTRIBUTES.lpSecurityDescriptorfromIntPtrtovoid*which cleans up the code.cc: @stephentoub