JDK-8176797 : [TESTBUG] tools/launcher/Settings.java -Xss size is too small
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 10
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-03-15
  • Updated: 2017-08-25
  • Resolved: 2017-03-17
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
The test tries to run with -Xss256k, which is fine, but then with -Xss256000, which is too small for the aarch64 thunder devices. They require a minimum stack of 256k, else you get the following error message:

  The Java thread stack size specified is too small. Specify at least 256k
  Error: Could not create the Java Virtual Machine.
  Error: A fatal exception has occurred. Program will exit.

Currently this bug is masked by JDK-8175342, which causes an assert. When I started testing with the fix for JDK-8175342, I started seeing this issue.

Note JDK-7148499 reported the same issue and was fixed in 8, but that bumped the size from 128k to 256k and 128000 to 256000. I think the proper fix is to simply change 256000 to 262144 (256*1024).
Comments
RULE "tools/launcher/Settings.java" Exception java.lang.RuntimeException: VM settings: not found
15-03-2017