Commit migrated from https://github.com/dotnet/corefx/commit/99433949e0cc77d69413d3cdb706d30ddb62267d