JDK-8213204 : ReservedStackTest and ReservedStackTestCompiler tests failed with "This platform should be supported: amd64"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-10-31
  • Updated: 2019-02-12
  • Resolved: 2018-10-31
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 12
12 b18Fixed
Related Reports
Relates :  
Relates :  
Description
The ReservedStackTest.java and ReservedStackTestCompiler.java tests failed in tier2 testing with the following error:

----------System.err:(15/1009)----------
FAILED: This platform should be supported: amd64
java.lang.RuntimeException: This platform should be supported: amd64
	at ReservedStackTest.initIsSupportedPlatform(ReservedStackTest.java:262)
	at ReservedStackTest.main(ReservedStackTest.java:267)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:835)

JavaTest Message: Test threw exception: java.lang.RuntimeException: This platform should be supported: amd64
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: This platform should be supported: amd64

This could be caused by the fix for JDK-8209093
Comments
This problem was introduced with the changes made to the test to remove the AARCH64 platform check. I had assumed that the only unsupported platform was the AARCH64 port that I removed. I missed the fact that Windows does not support this feature. 235 private static boolean isAlwaysSupportedPlatform() { 236 // Note: To date Aarch64 is the only platform that we don't statically 237 // know if it supports the reserved stack area. This is because the 238 // open Aarch64 port supports it and the Oracle arm64 port does not. 239 return Platform.isAix() || 240 (Platform.isLinux() && 241 (Platform.isPPC() || Platform.isS390x() || Platform.isX64() || 242 Platform.isX86())) || 243 Platform.isOSX() || 244 Platform.isSolaris(); 245 } 246 247 private static boolean isNeverSupportedPlatform() { 248 return !isAlwaysSupportedPlatform() && !Platform.isAArch64(); 249 }
31-10-2018