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

JNI_GetStringCritical does not lock char array

    XMLWordPrintable

Details

    • gc
    • b30
    • Verified

    Backports

      Description

        The JNI_GetStringCritical method does not lock the char array in the !is_latin case, but returning it to the caller.

        I think the string object can actually be unlocked at end of the method in this case as it is never returned to the C code (just the char array, but this one is not locked at all).

        May cause crashes with gcs supporting object pinning (that is Shenandoah).

        Found after looking at the suggestion in JDK-8269650.

        Attachments

          Issue Links

            Activity

              People

                kbarrett Kim Barrett
                tschatzl Thomas Schatzl
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: