Skip to content

Get rid of more .NET Nativisms#73612

Merged
MichalStrehovsky merged 12 commits into
dotnet:mainfrom
MichalStrehovsky:byemme
Aug 11, 2022
Merged

Get rid of more .NET Nativisms#73612
MichalStrehovsky merged 12 commits into
dotnet:mainfrom
MichalStrehovsky:byemme

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

Fixes #69998.
Fixes #69746.

Might be better to review individual commits.

We have a couple places that also catch MissingMetadataException. This is a .NET Nativism where a type can:

  1. Have the runtime data structure and metadata, or
  2. Can only have the runtime data structure, or
  3. Can only have the runtime structure and be marked as "blocked"
  4. Can only have the metadata and no runtime data structure

Situation 2 can lead to things like: accessing Type.FullName throws because we don't have the reflection metadata for it. It cannot happen in NativeAOT and I don't see a way to reconcile this with IL Linker, It probably has no future. I could excise that too if there's interest. Maybe better to do in this pull request,

Cc @dotnet/ilc-contrib

@jkotas

jkotas commented Aug 9, 2022

Copy link
Copy Markdown
Member

It probably has no future. I could excise that too if there's interest. Maybe better to do in this pull request,

I agree that this has no fugure. I think it is fine to delete it in this PR.

@jkotas jkotas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

@MichalStrehovsky

Copy link
Copy Markdown
Member Author

/azp run runtime-extra-platforms

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@MichalStrehovsky MichalStrehovsky merged commit fc06697 into dotnet:main Aug 11, 2022
@MichalStrehovsky MichalStrehovsky deleted the byemme branch August 11, 2022 01:44
@ghost ghost locked as resolved and limited conversation to collaborators Sep 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants