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

[REDO] Checked version of JNI Release<type>ArrayElements needs to filter out known wrapped arrays

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • 26
    • hotspot
    • Fix Understood
    • 8

      This is a re-do of JDK-8357601 . The original fix had a problem with the use of SafeFetch32

      The checked version of Get/Release<type>ArrayElements uses GuardedMemory to perform error checking. When releasing the array the code needs to check for the known array tags from the other JNI APIs and report an error.

      We also expand GuardedMemory to allow for a second tag word so that we can discriminate additional allocation sites i.e. identifying use of Get/SetPrimitiveArrayCritical.

            dholmes David Holmes
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: