JVM options processing silently truncates large illegal options values

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: 11, 17, 19
    • Component/s: hotspot
    • b12

      The JVM truncates option values that are greater than the size of the specified option, instead of reporting the values as illegal.

      For example, for int option -XX:DeoptimizeObjectsALotThreadCountAll=10123345670 (0x25B65FF06), the JVM assigns the value 1533411078 (0x5B65FF06) to DeoptimizeObjectsALotThreadCountAll.

      Similarly, for 64 bit options:

      > java -XX:+PrintFlagsFinal -Xint -XX:MaxJNILocalCapacity=12345123451234512345 2>&1 | grep MaxJNILocalCapacity
      > intx MaxJNILocalCapacity = -6101620622475039271

            Assignee:
            Harold Seigel (Inactive)
            Reporter:
            Harold Seigel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: