Block inlining of IntroSort (#89310)
authorAndy Ayers <andya@microsoft.com>
Fri, 21 Jul 2023 20:06:10 +0000 (13:06 -0700)
committerGitHub <noreply@github.com>
Fri, 21 Jul 2023 20:06:10 +0000 (13:06 -0700)
commitf79676ce92341e42875773d5ed855c76eda34ac5
tree1f3e12b6081c5f10628d80f0777dcf1726db306a
parent18024f42ac29d9d2ea4a5a343e2fb5ddaf8fd51a
Block inlining of IntroSort (#89310)

With PGO and (via #88749) one level of recursive inlining enabled, the jit sees
the recursive call made by `IntroSort` as an attractive inline candidate,
but it isn't.

Fixes #89106.
src/libraries/System.Private.CoreLib/src/System/Array.cs
src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ArraySortHelper.cs