Has only been seen on linux-aarch64 so far, debug versions seem to be not affected. The VM had additional arguments:
-Xcomp -XX:+CreateCoredumpOnCrash -XX:TieredStopAtLevel=1
We've got a stack trace:
java.lang.Error: Exception occurred during test execution
at compiler.codecache.stress.CodeCacheStressRunner.runTest(CodeCacheStressRunner.java:42)
at compiler.codecache.stress.UnexpectedDeoptimizationAllTest.main(UnexpectedDeoptimizationAllTest.java:67)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.NullPointerException: Cannot invoke "[Ljava.lang.Class;.clone()" because "this.parameterTypes" is null
at java.base/java.lang.reflect.Method.getParameterTypes(Method.java:316)
at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.slotCount(MethodHandleAccessorFactory.java:348)
at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.useNativeAccessor(MethodHandleAccessorFactory.java:332)
at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newConstructorAccessor(MethodHandleAccessorFactory.java:96)
at java.base/jdk.internal.reflect.ReflectionFactory.newConstructorAccessor(ReflectionFactory.java:200)
at java.base/java.lang.reflect.Constructor.acquireConstructorAccessor(Constructor.java:547)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:497)
at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)
at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:304)
at java.base/java.lang.Class.newInstance(Class.java:685)
at compiler.codecache.stress.Helper$TestCase.get(Helper.java:124)
at compiler.codecache.stress.CodeCacheStressRunner.test(CodeCacheStressRunner.java:47)
at jdk.test.lib.TimeLimitedRunner.call(TimeLimitedRunner.java:71)
at compiler.codecache.stress.CodeCacheStressRunner.runTest(CodeCacheStressRunner.java:40)
... 5 more
Different failure mode:
java.lang.Error: Exception occurred during test execution
at compiler.codecache.stress.CodeCacheStressRunner.runTest(CodeCacheStressRunner.java:42)
at compiler.codecache.stress.UnexpectedDeoptimizationAllTest.main(UnexpectedDeoptimizationAllTest.java:67)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.NullPointerException: Cannot read the array length because "this.parameterTypes" is null
at java.base/java.lang.reflect.Method.getParameterCount(Method.java:323)
at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.useNativeAccessor(MethodHandleAccessorFactory.java:324)
at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newConstructorAccessor(MethodHandleAccessorFactory.java:96)
at java.base/jdk.internal.reflect.ReflectionFactory.newConstructorAccessor(ReflectionFactory.java:200)
at java.base/java.lang.reflect.Constructor.acquireConstructorAccessor(Constructor.java:547)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:497)
at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)
at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:304)
at java.base/java.lang.Class.newInstance(Class.java:685)
at compiler.codecache.stress.Helper$TestCase.get(Helper.java:124)
at compiler.codecache.stress.CodeCacheStressRunner.test(CodeCacheStressRunner.java:47)
at jdk.test.lib.TimeLimitedRunner.call(TimeLimitedRunner.java:71)
at compiler.codecache.stress.CodeCacheStressRunner.runTest(CodeCacheStressRunner.java:40)