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

RyuJit doesn't support inlining P/Invokes whose return type is a struct #2144

@nattress

Description

@nattress

In importer.cpp, Compiler::impCanPInvokeInlineCallSite excludes P/Invokes from being emitted inline if they return a struct. This prevents CoreRT from compiling invoke stubs. The actual external method call ends up as a managed direct call instead.

See, ie: System.Console!mincore.GetLargestConsoleWindowSize

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions