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

Improve sharing of native wrappers in SignatureHandlerLibrary

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b72

      Backports

        Description

        Currently, only native methods that have the same signature can share a single native wrapper.

        This RFE allows CPU dependent code to normalize the signature, so that to methods that have different signatures which result in equivalent wrappers can use a single wrapper, slightly reducing the codecache usage.

        Can allow for instance to ignore whether an argument is a boolean, a byte, a char or an int if they are all handled in the same manner by the native ABI.

        The normalization is currently implemented only for closed platforms. Any platform who wants to benefit from normalization can define SHARING_FAST_NATIVE_FINGERPRINTS, in which case it must implement InterpreterRuntime::normalize_fast_native_fingerprint.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bdelsart Bertrand Delsart (Inactive)
                  Reporter:
                  bdelsart Bertrand Delsart (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: