JDK-8178491 : -Xss and -XX:ThreadStackSize argument parsing truncates bits
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9,10
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-04-11
  • Updated: 2017-08-25
  • Resolved: 2017-07-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10
10 b21Fixed
Related Reports
Relates :  
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)
Comments
Found while working on JDK-8178489.
11-04-2017