Skip to content

Conversation

@jakobbotsch
Copy link
Member

Switch back to this scheme, since only looking for the managed exception code does not handle crossgen2/ilc (they throw exceptions across the JIT-EE interface as normal C++ exceptions).

I've verified that the JIT does not look closely at the exception codes thrown in any of the places it does EH, which comes down to impJitErrorTrap and runWithErrorTrap. So changing the exception code should not result in any behavior differences.

Switch back to this scheme, since only looking for the managed exception
code does not handle crossgen2/ilc (they throw exceptions across the
JIT-EE interface as normal C++ exceptions).

I've verified that the JIT does not look closely at the exception codes
thrown in any of the places it does EH, which comes down to
`impJitErrorTrap` and `runWithErrorTrap`. So changing the exception code
should not result in any behavior differences.
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Aug 3, 2023
@ghost ghost assigned jakobbotsch Aug 3, 2023
@ghost
Copy link

ghost commented Aug 3, 2023

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

Issue Details

Switch back to this scheme, since only looking for the managed exception code does not handle crossgen2/ilc (they throw exceptions across the JIT-EE interface as normal C++ exceptions).

I've verified that the JIT does not look closely at the exception codes thrown in any of the places it does EH, which comes down to impJitErrorTrap and runWithErrorTrap. So changing the exception code should not result in any behavior differences.

Author: jakobbotsch
Assignees: jakobbotsch
Labels:

area-CodeGen-coreclr

Milestone: -

@jakobbotsch jakobbotsch marked this pull request as ready for review August 7, 2023 17:34
@jakobbotsch
Copy link
Member Author

cc @dotnet/jit-contrib PTAL @BruceForstall. I verified that this fixes a bunch of cases in the crossgen2 collections.

@jakobbotsch jakobbotsch merged commit 2e06200 into dotnet:main Aug 7, 2023
@jakobbotsch jakobbotsch deleted the spmi-immediate-replay-fixes-4 branch August 7, 2023 21:02
@jakobbotsch jakobbotsch mentioned this pull request Aug 7, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Sep 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants