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

JVM options processing silently truncates large illegal options values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 11, 17, 19
    • 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

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

              Created:
              Updated:
              Resolved: