JDK-8241586 : compiler/cpuflags/TestAESIntrinsicsOnUnsupportedConfig.java fails on aarch64
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 8,11,14,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: aarch64
  • Submitted: 2020-03-25
  • Updated: 2023-09-04
  • Resolved: 2020-03-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 11 JDK 13 JDK 14 JDK 15
11.0.8Fixed 13.0.4Fixed 14.0.2Fixed 15 b17Fixed
Description
Currently the hotspot jtreg test compiler/cpuflags/TestAESIntrinsicsOnUnsupportedConfig.java fails on aarch64 systems where the CPU does not support AES instructions.
Reason is that in this test, we check for the following fix message (that is printed on other CPU platforms):

51    private static final String AES_NOT_AVAILABLE_MSG = "warning: AES "
52            + "instructions are not available on this CPU";

However the aarch64 message differs and prints instead :
warning: UseAES specified, but not supported on this CPU

Same with the 'warning: AES intrinsics are not available on this CPU' that is checked by the test as well.
(gives currently on aarch64 the warning: UseAESIntrinsics specified, but not supported on this CPU)

So I think the aarch64 messages should be adjusted to match those on other architectures.
Comments
Fix Request (13u) Same reasons as for 11u and 14u.
09-06-2020

jdk11 backport request I would like to have the patch in jdk11 as well, because the issue is present there too. The patch applies cleanly.
03-04-2020

Fix request (14u): Same as for 11u, issue is present in14 as well.
03-04-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/ca116bb90caf User: mbaesken Date: 2020-03-27 10:08:51 +0000
27-03-2020