Skip to content

JNI Marshal Method Generation, Registration #14

@jonpryor

Description

@jonpryor

"Big picture" method registration picture

  • Remove marshal methods from binding assemblies
  • Support three method registration approaches:
    • Fully dynamic, via System.Linq.Expresssions/Java.Interop.Export
    • Using the above jnimarshalmethod-gen.exe-generated marshaling assembly; see above.
      • This would be for non-AOT "Release" registration
    • Using generated C code.
      • Possibly most performant; for each method to register, we'd emit a Java_... method as per Java/native convention.
      • Allows using the default Java linker to resolve method symbols!
      • Generated C code would use mono_method_invoke()/etc. to invoke the jnimarshalmethod-gen.exe-generated marshal methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    callable-wrappersIssues with Java Callable Wrappers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions