Please download the attached CDSLambdaInvokerTestDyn.sh and CDSLambdaInvokerTest.java, and run:
$ bash CDSLambdaInvokerTestDyn.sh $TESTBED
+ mybuild/images/jdk/bin/javac CDSLambdaInvokerTest.java
+ mybuild/images/jdk/bin/jar cf CDSLambdaInvokerTest.jar CDSLambdaInvokerTest.class
+ mybuild/images/jdk/bin/java -cp CDSLambdaInvokerTest.jar -XX:ArchiveClassesAtExit=CDSLambdaInvokerTestDyn.jsa -Xlog:cds+class=debug CDSLambdaInvokerTest
+ cat
+ mybuild/images/jdk/bin/java -XX:SharedArchiveFile=CDSLambdaInvokerTestDyn.jsa -cp CDSLambdaInvokerTest.jar -Xlog:class+load CDSLambdaInvokerTest
+ cat
============ checking dumping status ==================================================
***** FAILED: BoundMethodHandle$Species_FL should be archived
============ checking if lambda form classes/methods are loaded from CDS ==============
***** FAILED: BoundMethodHandle$Species_FL should be loaded from top archive