JDK-8177055 : [TESTBUG] test/runtime/ReservedStack/ReservedStackTest.java sometimes fails on Oracle arm64 port after being enabled for open aarch64 port
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9,10
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-03-17
  • Updated: 2017-08-25
  • Resolved: 2017-03-24
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
Changes for JDK-8172144 added Reserved Stack support to the open Aarch64 port, and enabled testing with test/runtime/ReservedStack/ReservedStackTest.java on Aarch64 by adding a check for Platform.isAArch64() to determine if the test is running on a supported platform. Unfortunately this causes the test to think the Oracle arm64 port supports this features, which it does not. It occasionally fails as a result. The failures are infrequent. I think the test may have to run on a Thunder machine to reproduce, and even then is not guaranteed to fail.

So far I've only seen failures on 10. I haven't seen any on 9, even after 50 runs. However, the changes for JDK-8172144 are in 9, so it can potentially reproduce there also.
Comments
Will fix by having the test check if -XX:StackReservedPages=1 produces a warning message in order to determine if the platform supports reserved stack pages.
21-03-2017