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

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

XMLWordPrintable

    • Fix Understood

      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 GuardMemory 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:
            4 Start watching this issue

              Created:
              Updated: