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