Skip to content

Remove dead fIs80Plus parameter from IMDInternalImport::GetUserString#129777

Merged
AaronRobinsonMSFT merged 1 commit into
mainfrom
copilot/remove-dead-fis80plus-param
Jun 24, 2026
Merged

Remove dead fIs80Plus parameter from IMDInternalImport::GetUserString#129777
AaronRobinsonMSFT merged 1 commit into
mainfrom
copilot/remove-dead-fis80plus-param

Conversation

Copilot AI commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

The fIs80Plus/pbIs80Plus output parameter on IMDInternalImport::GetUserString was dead — all call sites either passed NULL or ignored the value. Remove it from the interface, both implementations (MDInternalRO, MDInternalRW), and all call sites.

Changes:

  • src/coreclr/inc/metadata.h — Drop BOOL *pbIs80Plus from IMDInternalImport::GetUserString pure virtual
  • src/coreclr/md/runtime/mdinternalro.h / mdinternalro.cpp — Remove param and all pfIs80Plus null-guard/assignment logic
  • src/coreclr/md/inc/mdinternalrw.h / enc/mdinternalrw.cpp — Same
  • src/coreclr/vm/ceeload.cpp — Drop BOOL fIs80Plus local; remove from call
  • src/coreclr/vm/managedmdimport.cpp — Drop BOOL bHasExtendedChars local; remove from call
  • src/coreclr/vm/jitinterface.cpp, ildasm/dis.cpp, vm/readytorunstandalonemethodmetadata.cpp — Remove NULL arg from calls

Co-authored-by: AaronRobinsonMSFT <30635565+AaronRobinsonMSFT@users.noreply.github.com>
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke
See info in area-owners.md if you want to be subscribed.

@jkotas jkotas marked this pull request as ready for review June 23, 2026 23:10
Copilot AI review requested due to automatic review settings June 23, 2026 23:10

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.

Pull request overview

This PR updates the CoreCLR internal metadata import interface (IMDInternalImport) by removing a no-longer-used output parameter from GetUserString, and then mechanically fixes up the corresponding implementations and callers across the VM, metadata layers, and ILDASM.

Changes:

  • Removes the dead pbIs80Plus / fIs80Plus output parameter from IMDInternalImport::GetUserString (interface + implementations).
  • Updates all in-repo call sites to use the new 3-parameter signature.
  • Cleans up now-unused locals and assignment logic related to the removed parameter.

Reviewed changes

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

Show a summary per file
File Description
src/coreclr/inc/metadata.h Updates IMDInternalImport::GetUserString signature to drop the dead out-parameter.
src/coreclr/md/runtime/mdinternalro.h Updates MDInternalRO::GetUserString declaration to match the new interface signature.
src/coreclr/md/runtime/mdinternalro.cpp Removes the unused pfIs80Plus handling logic from MDInternalRO::GetUserString.
src/coreclr/md/inc/mdinternalrw.h Updates MDInternalRW::GetUserString declaration to match the new interface signature.
src/coreclr/md/enc/mdinternalrw.cpp Removes the unused pfIs80Plus handling logic from MDInternalRW::GetUserString.
src/coreclr/vm/ceeload.cpp Removes now-unused local and updates the GetUserString call in string initialization.
src/coreclr/vm/managedmdimport.cpp Updates the FCALL wrapper to call the new GetUserString signature and removes unused local.
src/coreclr/vm/jitinterface.cpp Updates JIT/EE interface usage to the new GetUserString signature.
src/coreclr/ildasm/dis.cpp Updates ILDASM token pretty-printer to call the new GetUserString signature.
src/coreclr/vm/readytorunstandalonemethodmetadata.cpp Updates ReadyToRun standalone metadata helper to call the new GetUserString signature.

@AaronRobinsonMSFT

Copy link
Copy Markdown
Member

New changes require approval from someone other than jkotas because they were the last pusher.

👎

@jkotas

jkotas commented Jun 24, 2026

Copy link
Copy Markdown
Member

/ba-g Arm64 failures are known issue #129738

@AaronRobinsonMSFT AaronRobinsonMSFT merged commit 5e3dadb into main Jun 24, 2026
130 of 133 checks passed
@AaronRobinsonMSFT AaronRobinsonMSFT deleted the copilot/remove-dead-fis80plus-param branch June 24, 2026 17:02
@github-project-automation github-project-automation Bot moved this to Done in AppModel Jun 24, 2026
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jun 25, 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.

5 participants