JDK-8283420 : [AOT] Exclude TrackedFlagTest/NotTrackedFlagTest in 11u because of intermittent java.lang.AssertionError: duplicate classes for name Ljava/lang/Boolean;
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-03-19
  • Updated: 2022-03-28
  • Resolved: 2022-03-21
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
11.0.16 teamFixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
We see intermittent failures in hotspot tests
compiler/aot/verification/vmflags/TrackedFlagTest.java
compiler/aot/verification/vmflags/NotTrackedFlagTest.java

with the following callstack:

Exception in thread "main" java.lang.AssertionError: duplicate classes for name Ljava/lang/Boolean;
	at jdk.aot@11.0.16-internal/jdk.tools.jaotc.AOTCompiledClass.getAOTKlassData(AOTCompiledClass.java:341)
	at jdk.aot@11.0.16-internal/jdk.tools.jaotc.AOTCompiledClass.metadataName(AOTCompiledClass.java:440)
	at jdk.aot@11.0.16-internal/jdk.tools.jaotc.AOTCompiledClass.metadataName(AOTCompiledClass.java:446)
	at jdk.aot@11.0.16-internal/jdk.tools.jaotc.AOTCompiledClass.metadataName(AOTCompiledClass.java:452)
	at jdk.aot@11.0.16-internal/jdk.tools.jaotc.MetadataBuilder.addMetadataEntries(MetadataBuilder.java:185)
	at jdk.aot@11.0.16-internal/jdk.tools.jaotc.MetadataBuilder.createMethodMetadata(MetadataBuilder.java:119)
	at jdk.aot@11.0.16-internal/jdk.tools.jaotc.MetadataBuilder.processMetadataClass(MetadataBuilder.java:70)
	at jdk.aot@11.0.16-internal/jdk.tools.jaotc.MetadataBuilder.processMetadata(MetadataBuilder.java:63)
	at jdk.aot@11.0.16-internal/jdk.tools.jaotc.DataBuilder.prepareData(DataBuilder.java:161)
	at jdk.aot@11.0.16-internal/jdk.tools.jaotc.Main.run(Main.java:230)
	at jdk.aot@11.0.16-internal/jdk.tools.jaotc.Main.run(Main.java:133)
	at jdk.aot@11.0.16-internal/jdk.tools.jaotc.Main.main(Main.java:89)

JBS research yields similar issues JDK-8201248 and JDK-8203835 which were fixed with Graal update JDK-8215224.

Since there are no plans to update Graal in 11u, I request the exclusion of these two tests to reduce noise in the CI systems.
Comments
Changeset: d568fc82 Author: Christoph Langer <clanger@openjdk.org> Date: 2022-03-21 16:50:00 +0000 URL: https://git.openjdk.java.net/jdk11u-dev/commit/d568fc823ee1078b5124277e91264d9d467530ff
21-03-2022

Fix request (11u): Specific test exclusion for 11u. Reasoning as per the description of this issue. PR reviewed by tstuefe.
20-03-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk11u-dev/pull/923 Date: 2022-03-19 22:44:08 +0000
19-03-2022