-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Replace SafeLocalAllocHandle
in System.Diagnostics.PerformanceCounter
#82456
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
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.
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
SafeLocalAllocHandle
since we own the handle and immediately callDangerousGetHandle
.Additionally change type of
Interop+Kernel32+SECURITY_ATTRIBUTES.lpSecurityDescriptor
fromIntPtr
tovoid*
which cleans up the code.cc: @stephentoub