[release/6.0] Fix Crossgen2 bug #61104 and add regression test (#64027)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 20 Jan 2022 17:21:19 +0000 (18:21 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Jan 2022 17:21:19 +0000 (18:21 +0100)
commitbbfc15ca692c32a60dacee5e204e638418e5d0bd
tree8d5d7a63e837965ce29937a09e53ffb593ee1755
parent6de5c5ba25886270bddfbd827b6cf0b7f8a178a2
[release/6.0] Fix Crossgen2 bug #61104 and add regression test (#64027)

* Fix issue #61104 and add regression test

The issue tracks the runtime regression failure where
Crossgen2-compiled app is unable to locate a type with non-ASCII
characters in its name. The failure was caused by the fact that
Crossgen2 was incorrectly zero-extended the individual characters
when calculating the hash whereas runtime is sign-extending them.

Thanks

Tomas

* Simplify the regression test per Anton's PR feedback

Co-authored-by: Tomas <trylek@microsoft.com>
src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunHashCode.cs
src/tests/Regressions/coreclr/GitHub_61104/test61104.cs [new file with mode: 0644]
src/tests/Regressions/coreclr/GitHub_61104/test61104.csproj [new file with mode: 0644]