dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.05k stars 4.69k forks source link

Normalize JIT usages of array length calcuation #103908

Open tannergooding opened 3 months ago

tannergooding commented 3 months ago

As per https://github.com/dotnet/runtime/pull/103778#discussion_r1651379623, there are a few places in the JIT that are using ARRAY_SIZE but the use of ArrLen is preferred where possible.

We should ideally normalize these to be consistent in the JIT and consider whether this is something we want to make more consistent across the codebase as well.

dotnet-policy-service[bot] commented 3 months ago

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

tannergooding commented 3 months ago

Marked this future as it's low priority consistency cleanup.