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