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