Skip to content

Conversation

@marek-safar
Copy link
Contributor

No description provided.

@ghost
Copy link

ghost commented Oct 9, 2020

Tagging subscribers to this area: @CoffeeFlux
See info in area-owners.md if you want to be subscribed.

@CoffeeFlux
Copy link
Contributor

Are there any plans for a CoreCLR equivalent to this? Looking at things like AppendStackFrameWithoutMethodBase, the same change could be applied there as well.

[MethodImplAttribute(MethodImplOptions.InternalCall)]
private extern void SetValueRelaxedImpl(object? value, int pos);

#pragma warning disable CA1822
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are these different? Is it just the volume and number of callers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are accessed as instance calls from JIT

Copy link
Member

Choose a reason for hiding this comment

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

Looks like InternalArray__ICollection_get_Count, InternalArray__IReadOnlyCollection_get_Count and few others which are accessing class members do not need the suppression.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The intention is to indicate that none of the methods should be made static even if they could

Copy link
Contributor

@CoffeeFlux CoffeeFlux left a comment

Choose a reason for hiding this comment

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

I think this comment is worth addressing, but otherwise looks good to me. Thanks!

@marek-safar marek-safar merged commit 385a0c6 into dotnet:master Oct 13, 2020
@marek-safar marek-safar deleted the analyzers branch October 13, 2020 17:37
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants