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