Commit migrated from https://github.com/dotnet/coreclr/commit/03bf11bd51099c5647a818d1e29e27ce3747c578