Skip to content

Only consider ECMA assemblies without DisableRuntimeMarshallingAttribute as having runtime marshalling enabled - #133977

Merged
jkoritzinsky merged 1 commit into
mainfrom
jkoritzinsky-patch-1
Sep 16, 2026
Merged

jkoritzinsky merged 1 commit into
mainfrom
jkoritzinsky-patch-1

Conversation

@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/interop-contrib
See info in area-owners.md if you want to be subscribed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Regression coverage for synthetic and ECMA module behavior is still needed.

Get a fresh assessment by requesting another Copilot review.

Review tier: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Updates NativeAOT marshalling detection so only ECMA assemblies without DisableRuntimeMarshallingAttribute are treated as having runtime marshalling enabled.

Changes:

  • Corrects non-ECMA module handling.
  • Prevents false marshalling diagnostics such as IL1005.
File Summary Review comment
src/​coreclr/​tools/​Common/​TypeSystem/​Interop/​IL/​MarshalHelpers.cs Corrects runtime-marshalling detection. Moderate (2 votes): Add regression coverage for synthetic and ECMA modules.

@jkoritzinsky
jkoritzinsky enabled auto-merge (squash) September 15, 2026 18:48
@jkoritzinsky
jkoritzinsky merged commit 9c7fe6d into main Sep 16, 2026
110 of 113 checks passed
@jkoritzinsky
jkoritzinsky deleted the jkoritzinsky-patch-1 branch September 16, 2026 01:10
@github-project-automation github-project-automation Bot moved this to Done in AppModel Sep 16, 2026
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 16, 2026
jtschuster pushed a commit to jtschuster/runtime that referenced this pull request Sep 18, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 16, 2026
@jkoritzinsky

Copy link
Copy Markdown
Member Author

/backport to release/11.0

@github-actions github-actions Bot unlocked this conversation Oct 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0 (link to workflow run)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants