Given:
my.jar contains Hello.class
my.classlist contains:
Hello
[Ljava/lang/Comparable;
java -XX:SharedArchiveFile=/tmp/my.jsa -cp ./my.jar -XX:ExtraSharedClassListFile=./my.classlist -Xshare:dump
causes vm crash:
Allocated shared space: 56868864 bytes at 0x0000000800000000
Loading classes to share ...
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: SuppressErrorAt=/instanceKlass.hpp:1025
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/scratch/cccheung/jdk10-open-only/hotspot/src/share/vm/oops/instanceKlass.hpp:1025), pid=43903, tid=43904
# assert(k->is_instance_klass()) failed: cast to InstanceKlass
#