JDK-8202604 : Use object pinning to avoid array copying in JNI_GetxxxArrayElements/GetStringxxx
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2018-05-03
  • Updated: 2019-05-02
  • Resolved: 2019-01-22
Related Reports
Relates :  
Relates :  
Description
During JDK-8199868 code review:

Ian Rogers wrote:

Re JDK-8199868 - should pinning be limited to just critical APIs? The non-critical variants could also pin to avoid copies.
I see this as related to JDK-8199919. It'd be nice to just move the critical APIs to use the same logic as the non-critical APIs, then pinning just becomes a performance optimization to avoid copying. Re JDK-8199919's comment that there is no deprecation mechanism, compilers like GCC allow function attributes that warn when a deprecated function is used.

Thanks,
Ian

http://mail.openjdk.java.net/pipermail/hotspot-dev/2018-May/032030.html

Comments
Runtime Triage: This is not on our current list of priorities. We will consider this feature if we receive additional customer requirements.
22-01-2019