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

Use strongly referenced generic invokers

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b17
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        We used to store "generic" (all-Object) versions of invokers and constructors in a weak hash map (reasoning was that they're rare, so we shouldn't pay the price of a field in RecompilableScriptFunctionData).

        Well, turns out we have to, otherwise we get a significant performance hit. I reduced the storage hit by introducing a holder class (GenericInvokers) for the two fields, and only have RecompilableScriptFunctionData reference the holder object. The heuristics here is again that in most cases, functions will not be using the generic invokers.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                attila Attila Szegedi
                Reporter:
                attila Attila Szegedi
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: