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