Skip to content

[ffi] Implement leaf FFI calls #36707

Closed
Closed
@sjindel-google

Description

@sjindel-google

Add support for FFI leaf calls:

  • No need to enter/leave safepoint - avoid few locked instructions
  • No need to create exit frame or update Thread state
  • No need to block all registers; callee-saved registers can still be live across the call
  • Replace existing InvokeMathCFunction with FFICall

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-ffitype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions