Description
When running Array.Sort the AOT compiler falls back to the interpreter.

Sample code :
var length = 1000;
var arr = new Span<int>(new int[length]);
for (var i = 0; i < length; i++)
{
arr[i] = (int)Random.Shared.Next();
}
var temp = new int[length];
for (var j = 0; j < 500; j++)
{
arr.CopyTo(temp);
Array.Sort(temp);
}
Configuration
https://github.com/dotnet/runtime/tree/release/7.0
Regression?
No, likely always was behaving this way.
Description
When running
Array.Sortthe AOT compiler falls back to the interpreter.Sample code :
Configuration
https://github.com/dotnet/runtime/tree/release/7.0
Regression?
No, likely always was behaving this way.