Skip to content
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

Simplify AssemblyName marshalling between VM and CoreLib #68735

Merged
merged 1 commit into from
May 1, 2022

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Apr 30, 2022

  • Introduce NativeAssemblyNameParts that is unmanaged view for the managed AssemblyNameParts
  • Use NativeAssemblyNameParts to convert manually managed code to C#

@ghost
Copy link

ghost commented Apr 30, 2022

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

Issue Details
  • Introduce NativeAssemblyNameParts that is unmanaged view for the managed AssemblyNameParts
  • Use NativeAssemblyNameParts to convert manually managed code to C#
Author: jkotas
Assignees: jkotas
Labels:

area-AssemblyLoader-coreclr

Milestone: -


AssemblyNameFlags flags = assemblyName.RawFlags;

// Note that we prefer to take a public key token if present,
Copy link
Member Author

Choose a reason for hiding this comment

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

This is mirroring the logic that used to be in C++

@jkotas
Copy link
Member Author

jkotas commented Apr 30, 2022

This is contributing towards moving more of assembly loader to C#. The next step after this PR is going to switch assembly name parsing to be C# only and delete the C++ parser.

- Introduce NativeAssemblyNameParts that is unmanaged view for the managed AssemblyNameParts
- Use NativeAssemblyNameParts to convert manually managed code to C#
- Delete unnecessary Version allocation
@jkotas
Copy link
Member Author

jkotas commented May 1, 2022

This is ready for review.

@denisemel9
Copy link

denisemel9 commented May 1, 2022 via email

Copy link
Member

@VSadov VSadov left a comment

Choose a reason for hiding this comment

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

LGTM!

@jkotas jkotas merged commit 3535e07 into dotnet:main May 1, 2022
@jkotas jkotas deleted the assembly-name-parts branch May 1, 2022 14:35
@DrewScoggins
Copy link
Member

Improvement: dotnet/perf-autofiling-issues#5076

@AndyAyersMS
Copy link
Member

AndyAyersMS commented May 12, 2022

@ghost ghost locked as resolved and limited conversation to collaborators Jun 11, 2022
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.

6 participants