Skip to content

ParameterInfo identity across hot reload - #134568

Merged
MichalStrehovsky merged 2 commits into
mainfrom
MichalStrehovsky-patch-1
Sep 24, 2026
Merged

MichalStrehovsky merged 2 commits into
mainfrom
MichalStrehovsky-patch-1

Conversation

@MichalStrehovsky

@MichalStrehovsky MichalStrehovsky commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

We need overrides for Equals/GetHashCode.

@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: @steveisok, @dotnet/area-system-reflection
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

One or more issues must be addressed before approval.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Adds a regression test for ParameterInfo equality and dictionary-key behavior after clearing reflection caches during hot reload.

Changes:

  • Clears the reflection cache and reacquires method parameters.
  • Verifies equality and hash-code stability across cache invalidation.
File Description
src/​libraries/​System.Runtime/​tests/​System.Runtime.Tests/​System/​Reflection/​ReflectionCacheTests.cs Updated as part of this pull request.

Copilot AI review requested due to automatic review settings September 24, 2026 07:26

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

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: 1 High severity

Open (1)

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

🔵 Needs a closer look

The test coverage does not validate position-based inequality and leaves Mono behavior untested without active tracking.

Review effort: Balanced
Findings: None

Resolved since last review (1)

@MichalStrehovsky

Copy link
Copy Markdown
Member Author

/ba-g networking...

@MichalStrehovsky
MichalStrehovsky enabled auto-merge (squash) September 24, 2026 21:31
@MichalStrehovsky
MichalStrehovsky merged commit 4fb703d into main Sep 24, 2026
135 of 137 checks passed
@MichalStrehovsky
MichalStrehovsky deleted the MichalStrehovsky-patch-1 branch September 24, 2026 21:31
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants