Since JDK-8266074, the cost of -XX:+VerifyDependencies, which is enabled by default in debug build, has significantly increased. This has caused significant slow down in the CDS MethodHandle tests. E.g.,
runtime/cds/appcds/methodHandles/MethodHandlesSpreadArgumentsTest.java
JDK 16: 117s
JDK 17: 223s
These tests were based on java/lang/invoke/*.java, which explicitly disable VerifyDependencies. We should do the same in the CDS tests.
runtime/cds/appcds/methodHandles/MethodHandlesSpreadArgumentsTest.java
JDK 16: 117s
JDK 17: 223s
These tests were based on java/lang/invoke/*.java, which explicitly disable VerifyDependencies. We should do the same in the CDS tests.