JDK-8161696 : [TESTBUG] runtime/StackGuardPages/testme.sh uses invalid argument -Xss328k
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-07-19
  • Updated: 2016-08-25
  • Resolved: 2016-08-03
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 9
9 b133Fixed
Related Reports
Relates :  
Description
The stack size specified is too small, Specify at least 384k
Test started with pid: 86114

From Dan D:

hotspot/test/runtime/StackGuardPages/exeinvoke.c:

  options[0].optionString = "-Xint";
  options[1].optionString = "-Xss328k";
  options[2].optionString = javaclasspathopt;

  vm_args.version = JNI_VERSION_1_2;
  vm_args.ignoreUnrecognized = JNI_TRUE;
  vm_args.options = options;
  vm_args.nOptions = 3;

  if (JNI_CreateJavaVM (&_jvm, (void **)&env, &vm_args) < 0 ) {
    fprintf(stderr, "Test ERROR. Can't create JavaVM\n");
    exit(7);
  }

Don't know where that magic "-Xss328k" came from, but it's
not going to work on a platform (ARM64) that requires 384K.


Comments
The option setting the stack size needs to be increased to 384k in hotspot/test/runtime/StackCuardPages/exeinvoke.c. The testme.sh script has been replaced by the exeinvoke.c file.
26-07-2016