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

Use object pinning to avoid array copying in JNI_GetxxxArrayElements/GetStringxxx

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed
    • P4
    • Resolution: Won't Fix
    • 11
    • tbd
    • hotspot
    • None

    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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zgu Zhengyu Gu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: