AOT cache creation fails with
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/katya/work/JavaSE/Hotspot/ws/git/leyden.483-candidate.pit/open/src/hotspot/share/cds/archiveBuilder.cpp:873), pid=1835, tid=1844
# assert(HeapShared::is_archivable_hidden_klass(ik)) failed: sanity
#
# JRE version: Java(TM) SE Runtime Environment (24.0) (fastdebug build 24-internal-2024-10-29-1724523.katya...)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 24-internal-2024-10-29-1724523.katya..., interpreted mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x5f3f14] ArchiveBuilder::make_klasses_shareable()+0x1324
#
--------------- S U M M A R Y ------------
Command Line: -XX:AOTMode=create -XX:AOTConfiguration=test.conf -XX:AOTCache=test.aot -XX:+AOTClassLinking -Xlog:cds,cds+class=debug:file=test.log
Host: olegbox, Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz, 24 cores, 15G, Ubuntu 16.04.6 LTS
Time: Tue Oct 29 11:08:06 2024 PDT elapsed time: 170.890612 seconds (0d 0h 2m 50s)
--------------- T H R E A D ---------------
Current thread (0x00007f1b842567f0): VMThread "VM Thread" [id=1844, stack(0x00007f1b74172000,0x00007f1b74272000) (1024K)]
Stack: [0x00007f1b74172000,0x00007f1b74272000], sp=0x00007f1b742707a0, free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x5f3f14] ArchiveBuilder::make_klasses_shareable()+0x1324 (archiveBuilder.cpp:873)
V [libjvm.so+0x14172f4] VM_PopulateDumpSharedSpace::doit()+0x1c4 (metaspaceShared.cpp:597)
V [libjvm.so+0x1926587] VM_Operation::evaluate()+0xf7 (vmOperations.cpp:75)
V [libjvm.so+0x19476b4] VMThread::evaluate_operation(VM_Operation*)+0xd4 (vmThread.cpp:283)
V [libjvm.so+0x1948263] VMThread::inner_execute(VM_Operation*)+0x3c3 (vmThread.cpp:427)
V [libjvm.so+0x1948444] VMThread::loop()+0x84 (vmThread.cpp:493)
V [libjvm.so+0x1948554] VMThread::run()+0x94 (vmThread.cpp:177)
V [libjvm.so+0x183a476] Thread::call_run()+0xb6 (thread.cpp:234)
V [libjvm.so+0x151ab98] thread_native_entry(Thread*)+0x128 (os_linux.cpp:858)
Registers:
RAX=0x00007f1b8ceb8000, RBX=0x0000000000000001, RCX=0x00007f1b8bbd1481, RDX=0x00007f1b8bc4b810
RSP=0x00007f1b742707a0, RBP=0x00007f1b742708f0, RSI=0x0000000000000369, RDI=0x00007f1b8bc4b008
R8 =0x0000000000000000, R9 =0x00007f1b8bc010cc, R10=0x0000000000000009, R11=0x00007f1b8c435090
R12=0x00007f1a78257c58, R13=0x00007f1b8c22fd64, R14=0x00007f1a57f882b8, R15=0x0000000000009e26
RIP=0x00007f1b8a6d0f14, EFLAGS=0x0000000000010246, CSGSFS=0x002b000000000033, ERR=0x0000000000000006
TRAPNO=0x000000000000000e
============
The class is java/lang/invoke/LambdaForm$VH+0x800000044
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/katya/work/JavaSE/Hotspot/ws/git/leyden.483-candidate.pit/open/src/hotspot/share/cds/archiveBuilder.cpp:873), pid=1835, tid=1844
# assert(HeapShared::is_archivable_hidden_klass(ik)) failed: sanity
#
# JRE version: Java(TM) SE Runtime Environment (24.0) (fastdebug build 24-internal-2024-10-29-1724523.katya...)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 24-internal-2024-10-29-1724523.katya..., interpreted mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x5f3f14] ArchiveBuilder::make_klasses_shareable()+0x1324
#
--------------- S U M M A R Y ------------
Command Line: -XX:AOTMode=create -XX:AOTConfiguration=test.conf -XX:AOTCache=test.aot -XX:+AOTClassLinking -Xlog:cds,cds+class=debug:file=test.log
Host: olegbox, Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz, 24 cores, 15G, Ubuntu 16.04.6 LTS
Time: Tue Oct 29 11:08:06 2024 PDT elapsed time: 170.890612 seconds (0d 0h 2m 50s)
--------------- T H R E A D ---------------
Current thread (0x00007f1b842567f0): VMThread "VM Thread" [id=1844, stack(0x00007f1b74172000,0x00007f1b74272000) (1024K)]
Stack: [0x00007f1b74172000,0x00007f1b74272000], sp=0x00007f1b742707a0, free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x5f3f14] ArchiveBuilder::make_klasses_shareable()+0x1324 (archiveBuilder.cpp:873)
V [libjvm.so+0x14172f4] VM_PopulateDumpSharedSpace::doit()+0x1c4 (metaspaceShared.cpp:597)
V [libjvm.so+0x1926587] VM_Operation::evaluate()+0xf7 (vmOperations.cpp:75)
V [libjvm.so+0x19476b4] VMThread::evaluate_operation(VM_Operation*)+0xd4 (vmThread.cpp:283)
V [libjvm.so+0x1948263] VMThread::inner_execute(VM_Operation*)+0x3c3 (vmThread.cpp:427)
V [libjvm.so+0x1948444] VMThread::loop()+0x84 (vmThread.cpp:493)
V [libjvm.so+0x1948554] VMThread::run()+0x94 (vmThread.cpp:177)
V [libjvm.so+0x183a476] Thread::call_run()+0xb6 (thread.cpp:234)
V [libjvm.so+0x151ab98] thread_native_entry(Thread*)+0x128 (os_linux.cpp:858)
Registers:
RAX=0x00007f1b8ceb8000, RBX=0x0000000000000001, RCX=0x00007f1b8bbd1481, RDX=0x00007f1b8bc4b810
RSP=0x00007f1b742707a0, RBP=0x00007f1b742708f0, RSI=0x0000000000000369, RDI=0x00007f1b8bc4b008
R8 =0x0000000000000000, R9 =0x00007f1b8bc010cc, R10=0x0000000000000009, R11=0x00007f1b8c435090
R12=0x00007f1a78257c58, R13=0x00007f1b8c22fd64, R14=0x00007f1a57f882b8, R15=0x0000000000009e26
RIP=0x00007f1b8a6d0f14, EFLAGS=0x0000000000010246, CSGSFS=0x002b000000000033, ERR=0x0000000000000006
TRAPNO=0x000000000000000e
============
The class is java/lang/invoke/LambdaForm$VH+0x800000044