Skip to content

Conversation

@MichalStrehovsky
Copy link
Member

Saw it in BasicMinimalApi profiles. The ultimate fix is to make RuntimeType a frozen object, but this will do for now.

Also made a bit of progress in eradicating EETypePtr while I'm touching this.

Cc @dotnet/ilc-contrib

Saw it in BasicMinimalApi profiles. The ultimate fix is to make `RuntimeType` a frozen object, but this will do for now.

Also made a bit of progress in eradicating `EETypePtr` while I'm touching this.
@ghost
Copy link

ghost commented May 9, 2023

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

Issue Details

Saw it in BasicMinimalApi profiles. The ultimate fix is to make RuntimeType a frozen object, but this will do for now.

Also made a bit of progress in eradicating EETypePtr while I'm touching this.

Cc @dotnet/ilc-contrib

Author: MichalStrehovsky
Assignees: MichalStrehovsky
Labels:

area-NativeAOT-coreclr

Milestone: -

{
ArgumentNullException.ThrowIfNull(nullableType);

#if NATIVEAOT
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 not necessary now that we don't do any reflection blocking.

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Nice!

@jkotas jkotas merged commit 5b62e27 into dotnet:main May 9, 2023
@MichalStrehovsky MichalStrehovsky deleted the typeof branch May 10, 2023 00:33
SingleAccretion added a commit to SingleAccretion/runtimelab that referenced this pull request May 25, 2023
The unhandled exception handling code needs to always reset
the scratch block, since it'll put it into a protected region.

Some helpers changed signatures in dotnet/runtime#85962.
SingleAccretion added a commit to SingleAccretion/runtimelab that referenced this pull request May 25, 2023
The unhandled exception handling code needs to always reset,
the scratch block, since it'll put it into a protected region.

Some helpers changed signatures in dotnet/runtime#85962.
jkotas pushed a commit to dotnet/runtimelab that referenced this pull request May 26, 2023
The unhandled exception handling code needs to always reset
the scratch block, since it'll put it into a protected region.

Some helpers changed signatures in dotnet/runtime#85962.
@ghost ghost locked as resolved and limited conversation to collaborators Jun 9, 2023
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.

2 participants