JDK-8234432 : AOT tests failing with 'used 'epsilon gc' is different from current 'g1 gc'' after CMS removal
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 14
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2019-11-19
  • Updated: 2024-01-29
  • Resolved: 2019-11-23
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 14
14 b25Fixed
Related Reports
Relates :  
Description
----------System.err:(37/2453)----------
 stdout: [Shared file ./unnamed.so error: used 'epsilon gc' is different from current 'g1 gc'

Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/2601fc0874be User: dlong Date: 2019-11-23 07:14:22 +0000
23-11-2019

I see. Thanks for the explanation.
22-11-2019

May be because has Graal changes from JDK-8232365: https://hg.openjdk.java.net/jdk/jdk/rev/ba6c248cae19#l133.1 which were not upstreamed to main Graal. AOT uses Graal's GC enumeration: http://hg.openjdk.java.net/jdk/jdk/file/7a3218ad8e7c/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/Main.java#l226 In JDK 14 it matches to Hotspot enumeration.
21-11-2019

Why is this not failing in the JDK 14 CI? ILW = AOT fails due to GC lookup failure, AOT tests, no workaround but disable AOT = HMM = P2
21-11-2019

The AOT shared library stores the GC ordinal number from "enum HotSpotGC". However JDK14 has removed CMS from "enum CollectedHeap::Name", causing a mismatch. I guess we could change the value to a string, or look up the GC through JNI or JVMCI.
19-11-2019