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