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