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

Replace binding recipe customization using MH combinators with bytecode spinning

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • repo-panama
    • tools

      Currently we using the method handle combinator API to create a customized method handle chain corresponding to a downcall/upcall binding recipe. This speeds up calls.

      But, doing this with the MH combinator API results in very complex code, and it seems the use case is not quite suited to it.

      Instead, we could switch to using bytcode spinning using ASM, which is more broadly understood by developers, and who's stack-based model fits the binding recipe IR's stack based model more closely, which should lead to simpler code.

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

              Created:
              Updated:
              Resolved: