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

Convert ClassDesc and MethodTypeDesc to be stored in static final fields

    XMLWordPrintable

Details

    • b05

    Description

      The constant API are intended to be constable; for the Classfile API, in particular, the constant descriptors should be cached to avoid repeated validations, and MethodTypeDesc caches descriptor string as well. We should migrate their factory usages on call sites to reusing static final variables, starting from the JDK usages and the JMH benchmarks.

      Related: https://mail.openjdk.org/pipermail/classfile-api-dev/2023-June/000378.html

      Attachments

        Issue Links

          Activity

            People

              liach Chen Liang
              liach Chen Liang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: