Skip to content

Fix crossgen2 compilation with reverse pinvoke - #222

Merged
janvorli merged 1 commit into
dotnet:masterfrom
janvorli:fix-crossgen2-reverse-pinvoke
Nov 26, 2019
Merged

janvorli merged 1 commit into
dotnet:masterfrom
janvorli:fix-crossgen2-reverse-pinvoke

Conversation

@janvorli

Copy link
Copy Markdown
Member

Crossgen2 is failing to compile assemblies that contain reverse pinvoke
helpers with NotImplementedException.
This change fixes it by throwing RequiresRuntimeJit exception instead
for CORINFO_HELP_JIT_REVERSE_PINVOKE_ENTER and
CORINFO_HELP_JIT_REVERSE_PINVOKE_EXIT.
That way, we just don't compile the related method, but the rest of the assembly
is still compiled.

Crossgen2 is failing to compile assemblies that contain reverse pinvoke
helpers with NotImplementedException.
This change fixes it by throwing RequiresRuntimeJit exception instead
for CORINFO_HELP_JIT_REVERSE_PINVOKE_ENTER and
CORINFO_HELP_JIT_REVERSE_PINVOKE_EXIT
@janvorli janvorli added this to the 5.0 milestone Nov 22, 2019
@janvorli
janvorli requested a review from trylek November 22, 2019 18:44
@janvorli janvorli self-assigned this Nov 22, 2019

@trylek trylek 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.

Great, thank you!

@janvorli
janvorli merged commit 3952a34 into dotnet:master Nov 26, 2019
MichalStrehovsky added a commit to MichalStrehovsky/runtime that referenced this pull request Nov 4, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2020
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