Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8135537 | emb-9 | Bertrand Delsart | P4 | Resolved | Fixed | team |
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.
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.
- backported by
-
JDK-8135537 Improve sharing of native wrappers in SignatureHandlerLibrary
-
- Resolved
-