This happens when cross compiling for aarch64. Due to recent changes (JDK-8239799), cross builds would create a VM that runs on the compiling host (the interim-image) with CDS enabled but JVMTI disabled. Running the interim image causes this assert:
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (open/src/hotspot/share/classfile/systemDictionary.cpp:2029), pid=11379, tid=11380
# assert(JvmtiExport::is_early_phase()) failed: All well known classes must be resolved in JVMTI early phase
#
# JRE version: (15.0) (slowdebug build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (slowdebug 15-internal+0-2020-02-28-2300549.mikael.vidstedt.jdk, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0xcc7896] SystemDictionary::resolve_well_known_classes(Thread*)+0x41e
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (open/src/hotspot/share/classfile/systemDictionary.cpp:2029), pid=11379, tid=11380
# assert(JvmtiExport::is_early_phase()) failed: All well known classes must be resolved in JVMTI early phase
#
# JRE version: (15.0) (slowdebug build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (slowdebug 15-internal+0-2020-02-28-2300549.mikael.vidstedt.jdk, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0xcc7896] SystemDictionary::resolve_well_known_classes(Thread*)+0x41e
- relates to
-
JDK-8239799 Cross-compilation ARM32/AARCH clientvm builds fails after JDK-8239450
- Resolved