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