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

jni_GetStringCritical asserts for empty strings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • 9
    • hotspot
    • None
    • b103
    • generic

    Description

      Change "8141132: JEP 254: Compact Strings" removed the handling of empty strings from jni_GetStringCritical(). As a consequence, the functions will now assert with:

      assert(is_within_bounds(which)) failed: index 0 out of bounds 0

      if called for a string of length zero.

      jni_GetStringCritical() also doesn't handle out-of-memory situations when creating a new character array. I'll add that as well into the fix.

      Attachments

        Issue Links

          Activity

            People

              simonis Volker Simonis
              simonis Volker Simonis
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: