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