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

Avoid throwing when attempting to set IInternalModelingOnlyValue #94404

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

MichalStrehovsky
Copy link
Member

The cctor interpreter represents some things that can only be used within the interpreter (but cannot be serialized to frozen blobs) as IInternalModelingOnlyValue. There was a piece of lazy code that was considering field assignments with these as invalid IL (we throw on invalid IL that we then catch later). Use the usual Status.Fail instead to reduce first chance exceptions. We don't want first chance exceptions in valid code.

Cc @dotnet/ilc-contrib

The cctor interpreter represents some things that can only be used within the interpreter (but cannot be serialized to frozen blobs) as `IInternalModelingOnlyValue`. There was a piece of lazy code that was considering field assignments with these as invalid IL (we throw on invalid IL that we then catch later). Use the usual `Status.Fail` instead to reduce first chance exceptions. We don't want first chance exceptions in valid code.
@ghost
Copy link

ghost commented Nov 6, 2023

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

Issue Details

The cctor interpreter represents some things that can only be used within the interpreter (but cannot be serialized to frozen blobs) as IInternalModelingOnlyValue. There was a piece of lazy code that was considering field assignments with these as invalid IL (we throw on invalid IL that we then catch later). Use the usual Status.Fail instead to reduce first chance exceptions. We don't want first chance exceptions in valid code.

Cc @dotnet/ilc-contrib

Author: MichalStrehovsky
Assignees: -
Labels:

area-NativeAOT-coreclr

Milestone: -

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.

None yet

2 participants