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

Refactor BootstrapMethodInvoker to further avoid runtime type checks

    Details

      Description

      We can improve startup efficiency of the BootstrapMethodInvoker by adding back explicit casts to MethodType or Class as appropriate, and improve the structure of how we special case known BSMs.

      Adding a special case for StringConcatFactory BSMs while we're at it can reduce bootstrap overhead of using indify string concat by a sizeable chunk (~200k executed bytecode).

      PoC patch: http://cr.openjdk.java.net/~redestad/scratch/scf_bsm.patch

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                redestad Claes Redestad
                Reporter:
                redestad Claes Redestad
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: