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

Invoke ObjectMethods::bootstrap method exactly

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • None
    • core-libs

      By invoking the ObjectMethods::bootstrap method exactly we avoid type checking wrappers around the invocation. This reduces one-off overheads of spinning up such methods.

      A recent regression (23-b13) cause a record hashCode to be generated on regular startup in my locale. Specializing this invoke in BootstrapMethodInvoker reduces overhead by 5.5ms on one startup test, with roughly less than 270k bytecode executed.

      While not a complete fix to the regression, this is a good enhancement to lower bootstrap overheads associated with record use.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: