Skip to content
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

Port FxCop rule CA2004: RemoveCallsToGCKeepAlive #479

Closed
Tracked by #61964
ghost opened this issue Nov 21, 2015 · 2 comments
Closed
Tracked by #61964

Port FxCop rule CA2004: RemoveCallsToGCKeepAlive #479

ghost opened this issue Nov 21, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 21, 2015

Title: Remove calls to GC.KeepAlive

Description:

If you convert to SafeHandle usage, remove all calls to GC.KeepAlive (object). In this case, classes should not have to call GC.KeepAlive. This assumes they do not have a finalizer but rely on SafeHandle to finalize the OS handle for them.

Dependency: None

Notes:

@AaronRobinsonMSFT
Copy link
Member

Interop team doesn't think this is useful. This can be closed.

@Evangelink
Copy link
Member

Closing this issue as won't be ported as per dotnet/runtime#61964 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants