Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8302346

Lift upcall sharing mechanism to AbstractLinker

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • None
    • repo-panama
    • core-libs

    Description

      Upcall stubs can share a Java wrapper class if they both have the same function descriptor. The wrapper class is customized for a particular target MethodHandle using MethodHandles.insertArguments.

      Lift the entry point for this mechanism to AbstractLinker, where it can live next to the similar mechanism that exists for downcall method handles, and so that it can also be used for the fallback linker (which currently doesn't do any sharing).

      Attachments

        Issue Links

          Activity

            People

              jvernee Jorn Vernee
              jvernee Jorn Vernee
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: