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

Reduce memory churn when creating java.lang.invoke entities

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9, 10
    • core-libs
    • None

      The amount of temporary objects created during bootstrapping of various java.lang.invoke entities can be reduced, e.g.:

      - no need to generate the signature strings in BoundMethodHandle.makeCbmhCtor
      - trusted MethodType lookups could be promoted without constructing new instances
      - InvokerBytecodeGenerator: creation of debug-only CLASS_PREFIX + className can be avoided, and sourceFile is used at most once and should not be eagerly created
      - A lot of array creation during startup in various varargs methods - while a larger rewrite might be warranted we can improve startup by constant-izing a few select, oft-used variants.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: