Skip to content

Fix crossgen2 build break in NewObjectFixupSignature - #136497

Merged
MichalStrehovsky merged 1 commit into
dotnet:mainfrom
jtschuster:fix/newobjectfixupsignature-dependency-sink
Oct 27, 2026
Merged

MichalStrehovsky merged 1 commit into
dotnet:mainfrom
jtschuster:fix/newobjectfixupsignature-dependency-sink

Conversation

@jtschuster

@jtschuster jtschuster commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

#132955 changed ObjectNode.ComputeNonRelocationBasedDependencies to take a DependencySink instead of returning a DependencyList. #135802 added the NewObjectFixupSignature override using the old signature. The two merged without a textual conflict, so ILCompiler.ReadyToRun no longer compiles (CS0115: no suitable method found to override).

This moves the override to the sink-based signature, matching NewArrayFixupSignature.

The failure is visible in CI on main, for example the "Build product" step of runtime-coreclr jitstress (dnceng-public build 1650306).

Validated by building ILCompiler.ReadyToRun.csproj in Debug on top of 6d19d4682bd with this change (0 warnings, 0 errors). It fails to build there without it.

Note

This pull request was authored with assistance from GitHub Copilot.

dotnet#132955 changed ObjectNode.ComputeNonRelocationBasedDependencies to take
a DependencySink, and dotnet#135802 added NewObjectFixupSignature with the old
DependencyList-returning override. The two merged without a textual
conflict, so ILCompiler.ReadyToRun no longer compiles. Move the override
to the sink-based signature, as NewArrayFixupSignature does.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9444d65-1735-42ee-a4a7-119174358f8d
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/crossgen-contrib
See info in area-owners.md if you want to be subscribed.

@jtschuster
jtschuster enabled auto-merge (squash) October 27, 2026 05:49
jtschuster added a commit to jtschuster/runtime that referenced this pull request Oct 27, 2026
Same change as dotnet#136497. Revert this commit once that fix is in
the branch's base.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9444d65-1735-42ee-a4a7-119174358f8d
@MichalStrehovsky

Copy link
Copy Markdown
Member

/ba-g fixes a build break in main, the builds already passed, we should get this in

@MichalStrehovsky
MichalStrehovsky merged commit 038ff75 into dotnet:main Oct 27, 2026
101 of 106 checks passed
@github-project-automation github-project-automation Bot moved this to Done in AppModel Oct 27, 2026
jtschuster added a commit to jtschuster/runtime that referenced this pull request Oct 27, 2026
The fix landed in main as dotnet#136497.

This reverts commit 984183f.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9444d65-1735-42ee-a4a7-119174358f8d
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants