JDK-8173474 : AArch64: fix reported -Xss minimum
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-01-27
  • Updated: 2017-02-22
  • Resolved: 2017-01-27
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 JDK 9
10Fixed 9 b155Fixed
Related Reports
Relates :  
Relates :  
Description
Increase posix min_stack values so -Xss reports a valid minimum
Comments
The fix for 8173339 corrected the number of shadow region pages on Aarch64 but omitted to update the minimum (base) thread stack sizes for java and compiler threads os::Posix::_compiler_thread_min_stack_allowed = 32K; os::Posix::_java_thread_min_stack_allowed = 32K; This leads to -Xss reporting a minimum stack of 320K but actually allow programs (such as Hello or the jdk jtreg test SmallStackTest) to suffer a StackOverflowException when run with a stack of 340K. The sizes should be adjusted up (by 40K) so that -Xss adopts a minimum which leads it t reject settings that lead to a StackOverflowException.
27-01-2017