Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Add PInvoke and Reverse PInvoke transitions on Windows - #1274

Merged
jkotas merged 1 commit into
dotnet:masterfrom
jkotas:interop
May 16, 2016
Merged

jkotas merged 1 commit into
dotnet:masterfrom
jkotas:interop

Conversation

@jkotas

@jkotas jkotas commented May 13, 2016

Copy link
Copy Markdown
Member

No description provided.

@jkotas

jkotas commented May 13, 2016

Copy link
Copy Markdown
Member Author

This will pass once RyuJIT is updated with dotnet/coreclr#4952

@jkotas

jkotas commented May 13, 2016

Copy link
Copy Markdown
Member Author

@smosier Could you please take a look at the runtime changes?

break;

case JitHelperId.ReversePInvokeEnter:
mangledName = "RhpReversePInvoke2";

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.

Why the "2"?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It is the name of the right helper in the runtime impl (

;; RhpReversePInvoke2
).

The helper without "2" has a special calling convention to allow the code generator to produce a bit more efficient code, but teaching RyuJIT how to take advantage of it is more involved.

@jkotas jkotas changed the title [WIP] Add PInvoke and Reverse PInvoke transitions on Windows Add PInvoke and Reverse PInvoke transitions on Windows May 15, 2016
@jkotas

jkotas commented May 15, 2016

Copy link
Copy Markdown
Member Author

Removed [WIP] tag

@jkotas

jkotas commented May 16, 2016

Copy link
Copy Markdown
Member Author

@dotnet-bot test OSX Debug please

@MichalStrehovsky

Copy link
Copy Markdown
Member

LGTM

@jkotas
jkotas merged commit c5d377c into dotnet:master May 16, 2016
@jkotas
jkotas deleted the interop branch May 18, 2016 18:47
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.

5 participants