-Xss and -XX:ThreadStackSize argument parsing truncates bits

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 9, 10
    • Component/s: hotspot
    • None
    • b21

      java -Xss2147483648 -version
      intx ThreadStackSize=18014398507384832 is outside the allowed range [ 0 ... 9007199254740987 ]

      A cast from julong to int without checks causes weird error messages and behavior:
       round_to((int)long_ThreadStackSize, K) / K) != Flag::SUCCESS)

            Assignee:
            Stefan Karlsson
            Reporter:
            Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: