Commit migrated from https://github.com/dotnet/corefx/commit/9e0d7b1c6745786ba74dd0a6bc2556ab6611a920