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

-Xss and -XX:ThreadStackSize argument parsing truncates bits

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9, 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: