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

Improve performance with the use of catchException and asSpreader combinator

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 18
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
      None

      Description

      JEP 416 implementation does not use catchException and asSpreader combinator because of the performance regression. In particular the cold startup regression is significant due to the spinning and loading of the lambda classes.

      The current implementation decodes from the stack trace to determine if NPE and CCE are thrown due to illegal argument passed to Method::invoke or thrown by the method body so that IAE or ITE is thrown properly. It also has a specialized logic to avoid using asSpreader if the method has 3 or fewer arguments. It'd be ideal to improve the performance of catchException and asSpreader or the version specified for core reflection use such that the special logics can be removed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mchung Mandy Chung
              Reporter:
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: