[JVMCI] JVMCICounterSize value range should be limited

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: None
    • Component/s: hotspot

      JVMCICounterSize is intx type option. In case JVMCICounterSize=0x80000000 (which is MIN_VALUE = MAX_VALUE + 1 and in case of int it's a negative value), it's handled as long. After that, a CompilerToVM::collectCounters can return long[] which size is equal to JVMCICounterSize, but since array size in java can't be more that MAX_VALUE, this case will cause undefined problems.

            Assignee:
            Christian Thalinger (Inactive)
            Reporter:
            Dmitrij Pochepko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: