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