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

Improve sharing of native wrappers in SignatureHandlerLibrary

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • b72

        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.

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

                Created:
                Updated:
                Resolved: