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