Skip to content

Fix UnsafeAccessor scenario for modopts/modreqs when comparing field sigs. #111648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

AaronRobinsonMSFT
Copy link
Member

Consume custom modifiers and ByRef in RetType signature prior to comparing field signature.

Fixes #111647

prior to comparing field signature.
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 4 changed files in this pull request and generated no comments.

Files not reviewed (3)
  • src/coreclr/vm/prestub.cpp: Language not supported
  • src/coreclr/vm/siginfo.cpp: Language not supported
  • src/coreclr/vm/siginfo.hpp: Language not supported

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 4 changed files in this pull request and generated no comments.

Files not reviewed (3)
  • src/coreclr/vm/prestub.cpp: Language not supported
  • src/coreclr/vm/siginfo.cpp: Language not supported
  • src/coreclr/vm/siginfo.hpp: Language not supported

@jkotas
Copy link
Member

jkotas commented Jan 21, 2025

/azp run runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@AaronRobinsonMSFT
Copy link
Member Author

/backport to release/9.0-staging

Copy link
Contributor

Started backporting to release/9.0-staging: https://github.com/dotnet/runtime/actions/runs/12890369826

Copy link
Contributor

@AaronRobinsonMSFT backporting to "release/9.0-staging" failed, the patch most likely resulted in conflicts:

$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Consume custom modifiers and ByRef in RetType signature prior to comparing field signature.
Using index info to reconstruct a base tree...
M	src/coreclr/vm/prestub.cpp
M	src/coreclr/vm/siginfo.cpp
M	src/coreclr/vm/siginfo.hpp
M	src/tests/baseservices/compilerservices/UnsafeAccessors/UnsafeAccessorsTests.cs
Falling back to patching base and 3-way merge...
Auto-merging src/tests/baseservices/compilerservices/UnsafeAccessors/UnsafeAccessorsTests.cs
CONFLICT (content): Merge conflict in src/tests/baseservices/compilerservices/UnsafeAccessors/UnsafeAccessorsTests.cs
Auto-merging src/coreclr/vm/siginfo.hpp
Auto-merging src/coreclr/vm/siginfo.cpp
Auto-merging src/coreclr/vm/prestub.cpp
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 Consume custom modifiers and ByRef in RetType signature prior to comparing field signature.
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

@AaronRobinsonMSFT AaronRobinsonMSFT merged commit 242af17 into dotnet:main Jan 21, 2025
115 of 119 checks passed
@AaronRobinsonMSFT AaronRobinsonMSFT deleted the runtime_111647 branch January 21, 2025 18:39
AaronRobinsonMSFT added a commit to AaronRobinsonMSFT/runtime that referenced this pull request Jan 21, 2025
…d sigs. (dotnet#111648)

* Consume custom modifiers and ByRef in RetType signature
prior to comparing field signature.
AaronRobinsonMSFT added a commit that referenced this pull request Jan 24, 2025
…d sigs. (#111648) (#111675)

* Consume custom modifiers and ByRef in RetType signature
prior to comparing field signature.
@github-actions github-actions bot locked and limited conversation to collaborators Feb 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modopt/modreq parsing is busted in some cases for UnsafeAccessor scenarios
2 participants