Skip to content

Return generated GUIDs by value - #135790

Merged
AaronRobinsonMSFT merged 3 commits into
dotnet:mainfrom
AaronRobinsonMSFT:return-guids-by-value
Oct 19, 2026
Merged

AaronRobinsonMSFT merged 3 commits into
dotnet:mainfrom
AaronRobinsonMSFT:return-guids-by-value

Conversation

@AaronRobinsonMSFT

Copy link
Copy Markdown
Member

GUID generation helpers currently write results through output pointers. Return GUIDs by value, update callers, and make GuidFromName static.

Note

This PR description was generated by GitHub Copilot.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: d358047d-745a-4ba8-ae1d-5d797a8341bc
@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: @agocke
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.

🟢 Approval recommended

The focused refactor consistently updates declarations and callers while preserving GUID computation, exception handling, and synchronization.

No open issues 🎉

What changed in this PR

Simplifies CoreCLR GUID generation helpers by returning GUIDs by value while preserving generation behavior.

Changes:

  • Changes helper signatures and updates callers.
  • Makes GuidFromName private to its source file.
  • Removes obsolete output-buffer commentary.

Static review found no blocking issues. Builds and tests were not run.

File Description
src/​coreclr/​vm/​methodtable.cpp Assigns the returned GUID.
src/​coreclr/​vm/​interoputil.h Updates the class-interface helper declaration.
src/​coreclr/​vm/​interoputil.cpp Returns GUID values and updates wrapper callers.
src/​coreclr/​vm/​comcallablewrapper.cpp Updates COM interface GUID assignments.
src/​coreclr/​utilcode/​guidfromname.cpp Returns GUID values and makes GuidFromName static.
src/​coreclr/​inc/​guidfromname.h Updates the GUID-generation declaration.

Review effort: Balanced

Comment thread src/coreclr/utilcode/guidfromname.cpp Resolved
@AaronRobinsonMSFT

Copy link
Copy Markdown
Member Author

/ba-g known failures.

@AaronRobinsonMSFT
AaronRobinsonMSFT merged commit e4fd656 into dotnet:main Oct 19, 2026
100 of 102 checks passed
@AaronRobinsonMSFT
AaronRobinsonMSFT deleted the return-guids-by-value branch October 19, 2026 19:18
@github-project-automation github-project-automation Bot moved this to Done in AppModel Oct 19, 2026
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 20, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 20, 2026
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