Fix issue with incorrect handling of optimized method layouts - The sort order of...
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Fri, 8 Oct 2021 16:52:27 +0000 (09:52 -0700)
committerGitHub <noreply@github.com>
Fri, 8 Oct 2021 16:52:27 +0000 (09:52 -0700)
commit9dfda4fd9e72d979f7a8c596544b5d805f4f8537
tree13fa617b692215463523fd4034080bcf5daff9d1
parent386e5c1bb1d506d5a9ef4531bef55f692509d2c4
Fix issue with incorrect handling of optimized method layouts - The sort order of the RuntimeFunctions table (among others) was not properly handled when an optimized method layout was applied - While this bug applied to non-composite builds, it was easily reproduced with a composite build - Fix lack of test infrastructure around non-standard method layouts. - Add new random method sorting order - Use new random sorting order in crossgen2 test passes (#60109)

Fixes #59089

Co-authored-by: David Wrighton <davidwr@microsoft.com>
src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunFileLayoutOptimizer.cs
src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunTableManager.cs
src/coreclr/tools/aot/crossgen2/Program.cs
src/coreclr/tools/aot/crossgen2/Properties/Resources.resx
src/tests/Common/CLRTest.CrossGen.targets