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