Commit migrated from https://github.com/dotnet/coreclr/commit/5922bc02cd9e40615ca420ee9847d2cfc3ef834a