Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8150014

java/lang/invoke/LFCaching/LFMultiThreadCachingTest.java fails with NoClassDefFoundError

    XMLWordPrintable

Details

    Description

      One ore more threads have thrown unexpected exceptions:
      NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom

      Below are partial logs:
      A thread with name "Thread-461" of 32 threads has thrown exception:
      java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
      at java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2581)
      at java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2330)
      at java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1178)
      at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1107)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.expungeStaleElements(MethodType.java:1291)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.get(MethodType.java:1250)
      at java.lang.invoke.MethodType.makeImpl(MethodType.java:305)
      at java.lang.invoke.MethodType.methodType(MethodType.java:250)
      at java.lang.invoke.MethodHandleImpl$ArrayAccessor.type(MethodHandleImpl.java:153)
      at java.lang.invoke.MethodHandleImpl$ArrayAccessor.getAccessor(MethodHandleImpl.java:163)
      at java.lang.invoke.MethodHandleImpl.makeArrayElementAccessor(MethodHandleImpl.java:77)
      at java.lang.invoke.MethodHandles.arrayElementSetter(MethodHandles.java:1906)
      at TestMethods$15.getMH(TestMethods.java:452)
      at TestMethods.getTestCaseMH(TestMethods.java:548)
      at LFMultiThreadCachingTest.lambda$doTest$0(LFMultiThreadCachingTest.java:89)
      at java.lang.Thread.run(Thread.java:804)
      java.lang.Error: One ore more threads have thrown unexpected exceptions. See log.
      at LFMultiThreadCachingTest.doTest(LFMultiThreadCachingTest.java:117)
      at jdk.testlibrary.Utils.filterException(Utils.java:355)
      at com.oracle.testlibrary.jsr292.CodeCacheOverflowProcessor.runMHTest(CodeCacheOverflowProcessor.java:70)
      at LambdaFormTestCase$TestRun.doIteration(LambdaFormTestCase.java:124)
      at jdk.testlibrary.TimeLimitedRunner.call(TimeLimitedRunner.java:71)
      at LambdaFormTestCase.runTests(LambdaFormTestCase.java:193)
      at LFMultiThreadCachingTest.main(LFMultiThreadCachingTest.java:145)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)
      FAILED. Caused by One ore more threads have thrown unexpected exceptions. See log.
      Tested LF caching feature with MethodHandles.constant method.
      PASSED
      Tested LF caching feature with MethodHandles.identity method.
      PASSED
      Iteration 1:
      Tested LF caching feature with MethodHandles.foldArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.dropArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.explicitCastArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterReturnValue method.
      PASSED
      Tested LF caching feature with MethodHandles.insertArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.permuteArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.throwException method.
      PASSED
      Tested LF caching feature with MethodHandles.guardWithTest method.
      PASSED
      Tested LF caching feature with MethodHandles.catchException method.

      A thread with name "Thread-854" of 32 threads has thrown exception:
      java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
      at java.util.concurrent.ThreadLocalRandom.getProbe(ThreadLocalRandom.java:982)
      at java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2581)
      at java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2330)
      at java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1178)
      at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1107)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.expungeStaleElements(MethodType.java:1291)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.get(MethodType.java:1250)
      at java.lang.invoke.MethodType.makeImpl(MethodType.java:305)
      at java.lang.invoke.MethodType.changeParameterType(MethodType.java:378)
      at java.lang.invoke.MethodHandleImpl.makePairwiseConvertByEditor(MethodHandleImpl.java:226)
      at java.lang.invoke.MethodHandleImpl.makePairwiseConvert(MethodHandleImpl.java:191)
      at java.lang.invoke.MethodHandleImpl.makePairwiseConvert(MethodHandleImpl.java:358)
      at java.lang.invoke.MethodHandle.asTypeUncached(MethodHandle.java:781)
      at java.lang.invoke.MethodHandle.asType(MethodHandle.java:766)
      at java.lang.invoke.MethodHandleImpl$IntrinsicMethodHandle.asTypeUncached(MethodHandleImpl.java:1294)
      at java.lang.invoke.MethodHandle.asType(MethodHandle.java:766)
      at java.lang.invoke.MethodHandleImpl.makeGuardWithCatch(MethodHandleImpl.java:960)
      at java.lang.invoke.MethodHandles.catchException(MethodHandles.java:3143)
      at TestMethods$10.getMH(TestMethods.java:359)
      at TestMethods.getTestCaseMH(TestMethods.java:548)
      at LFMultiThreadCachingTest.lambda$doTest$0(LFMultiThreadCachingTest.java:89)
      at java.lang.Thread.run(Thread.java:804)
      java.lang.Error: One ore more threads have thrown unexpected exceptions. See log.
      at LFMultiThreadCachingTest.doTest(LFMultiThreadCachingTest.java:117)
      at jdk.testlibrary.Utils.filterException(Utils.java:355)
      at com.oracle.testlibrary.jsr292.CodeCacheOverflowProcessor.runMHTest(CodeCacheOverflowProcessor.java:70)
      at LambdaFormTestCase$TestRun.doIteration(LambdaFormTestCase.java:124)
      at jdk.testlibrary.TimeLimitedRunner.call(TimeLimitedRunner.java:71)
      at LambdaFormTestCase.runTests(LambdaFormTestCase.java:193)
      at LFMultiThreadCachingTest.main(LFMultiThreadCachingTest.java:145)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)
      FAILED. Caused by One ore more threads have thrown unexpected exceptions. See log.
      Tested LF caching feature with MethodHandles.invoker method.
      PASSED
      Tested LF caching feature with MethodHandles.exactInvoker method.
      PASSED
      Tested LF caching feature with MethodHandles.spreadInvoker method.
      PASSED
      Tested LF caching feature with MethodHandles.arrayElementGetter method.
      PASSED
      Tested LF caching feature with MethodHandles.arrayElementSetter method.
      PASSED
      Tested LF caching feature with MethodHandles.constant method.
      PASSED
      Tested LF caching feature with MethodHandles.identity method.
      PASSED
      Iteration 2:
      Tested LF caching feature with MethodHandles.foldArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.dropArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.explicitCastArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterReturnValue method.
      PASSED
      Tested LF caching feature with MethodHandles.insertArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.permuteArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.throwException method.
      PASSED
      Tested LF caching feature with MethodHandles.guardWithTest method.
      PASSED
      Tested LF caching feature with MethodHandles.catchException method.
      PASSED
      Tested LF caching feature with MethodHandles.invoker method.
      PASSED
      Tested LF caching feature with MethodHandles.exactInvoker method.

      A thread with name "Thread-1473" of 32 threads has thrown exception:
      java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
      at java.util.concurrent.ThreadLocalRandom.getProbe(ThreadLocalRandom.java:982)
      at java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2581)
      at java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2330)
      at java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1178)
      at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1107)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.expungeStaleElements(MethodType.java:1291)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.get(MethodType.java:1250)
      at java.lang.invoke.MethodType.makeImpl(MethodType.java:305)
      at java.lang.invoke.MethodType.insertParameterTypes(MethodType.java:403)
      at java.lang.invoke.MethodType.invokerType(MethodType.java:642)
      at java.lang.invoke.Invokers.makeExactOrGeneralInvoker(Invokers.java:109)
      at java.lang.invoke.Invokers.exactInvoker(Invokers.java:67)
      at java.lang.invoke.MethodHandles.exactInvoker(MethodHandles.java:2002)
      at TestMethods$12.getMH(TestMethods.java:391)
      at TestMethods.getTestCaseMH(TestMethods.java:548)
      at LFMultiThreadCachingTest.lambda$doTest$0(LFMultiThreadCachingTest.java:89)
      at java.lang.Thread.run(Thread.java:804)
      java.lang.Error: One ore more threads have thrown unexpected exceptions. See log.
      at LFMultiThreadCachingTest.doTest(LFMultiThreadCachingTest.java:117)
      at jdk.testlibrary.Utils.filterException(Utils.java:355)
      at com.oracle.testlibrary.jsr292.CodeCacheOverflowProcessor.runMHTest(CodeCacheOverflowProcessor.java:70)
      at LambdaFormTestCase$TestRun.doIteration(LambdaFormTestCase.java:124)
      at jdk.testlibrary.TimeLimitedRunner.call(TimeLimitedRunner.java:71)
      at LambdaFormTestCase.runTests(LambdaFormTestCase.java:193)
      at LFMultiThreadCachingTest.main(LFMultiThreadCachingTest.java:145)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)
      FAILED. Caused by One ore more threads have thrown unexpected exceptions. See log.
      Tested LF caching feature with MethodHandles.spreadInvoker method.
      PASSED
      Tested LF caching feature with MethodHandles.arrayElementGetter method.
      PASSED
      Tested LF caching feature with MethodHandles.arrayElementSetter method.
      PASSED
      Tested LF caching feature with MethodHandles.constant method.
      PASSED
      Tested LF caching feature with MethodHandles.identity method.
      PASSED
      Iteration 3:
      Tested LF caching feature with MethodHandles.foldArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.dropArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.explicitCastArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterReturnValue method.
      PASSED
      Tested LF caching feature with MethodHandles.insertArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.permuteArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.throwException method.
      PASSED
      Tested LF caching feature with MethodHandles.guardWithTest method.
      PASSED
      Tested LF caching feature with MethodHandles.catchException method.
      PASSED
      Tested LF caching feature with MethodHandles.invoker method.
      PASSED
      Tested LF caching feature with MethodHandles.exactInvoker method.
      PASSED
      Tested LF caching feature with MethodHandles.spreadInvoker method.
      PASSED
      Tested LF caching feature with MethodHandles.arrayElementGetter method.
      PASSED
      Tested LF caching feature with MethodHandles.arrayElementSetter method.
      PASSED
      Tested LF caching feature with MethodHandles.constant method.
      PASSED
      Tested LF caching feature with MethodHandles.identity method.
      PASSED
      Iteration 4:
      Tested LF caching feature with MethodHandles.foldArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.dropArguments method.

      A thread with name "Thread-2210" of 32 threads has thrown exception:
      java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
      at java.util.concurrent.ThreadLocalRandom.getProbe(ThreadLocalRandom.java:982)
      at java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2581)
      at java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2330)
      at java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1178)
      at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1107)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.expungeStaleElements(MethodType.java:1291)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.get(MethodType.java:1250)
      at java.lang.invoke.MethodType.makeImpl(MethodType.java:305)
      at java.lang.invoke.MethodType.dropParameterTypes(MethodType.java:583)
      at java.lang.invoke.LambdaFormEditor.bindArgumentType(LambdaFormEditor.java:442)
      at java.lang.invoke.LambdaFormEditor.bindArgumentI(LambdaFormEditor.java:409)
      at java.lang.invoke.BoundMethodHandle.bindArgumentI(BoundMethodHandle.java:103)
      at java.lang.invoke.MethodHandles.insertArgumentPrimitive(MethodHandles.java:2461)
      at java.lang.invoke.MethodHandles.insertArguments(MethodHandles.java:2442)
      at java.lang.invoke.MethodHandles.constant(MethodHandles.java:2341)
      at TestMethods$Kind.getBasicMH(TestMethods.java:587)
      at TestMethods$Kind.access$900(TestMethods.java:566)
      at TestMethods.methodHandleGenerator(TestMethods.java:631)
      at TestMethods.access$300(TestMethods.java:41)
      at TestMethods$2.getMH(TestMethods.java:104)
      at TestMethods.getTestCaseMH(TestMethods.java:548)
      at LFMultiThreadCachingTest.lambda$doTest$0(LFMultiThreadCachingTest.java:89)
      at java.lang.Thread.run(Thread.java:804)
      java.lang.Error: One ore more threads have thrown unexpected exceptions. See log.
      at LFMultiThreadCachingTest.doTest(LFMultiThreadCachingTest.java:117)
      at jdk.testlibrary.Utils.filterException(Utils.java:355)
      at com.oracle.testlibrary.jsr292.CodeCacheOverflowProcessor.runMHTest(CodeCacheOverflowProcessor.java:70)
      at LambdaFormTestCase$TestRun.doIteration(LambdaFormTestCase.java:124)
      at jdk.testlibrary.TimeLimitedRunner.call(TimeLimitedRunner.java:71)
      at LambdaFormTestCase.runTests(LambdaFormTestCase.java:193)
      at LFMultiThreadCachingTest.main(LFMultiThreadCachingTest.java:145)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)
      FAILED. Caused by One ore more threads have thrown unexpected exceptions. See log.
      Tested LF caching feature with MethodHandles.explicitCastArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterReturnValue method.
      PASSED
      Tested LF caching feature with MethodHandles.insertArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.permuteArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.throwException method.
      PASSED
      Tested LF caching feature with MethodHandles.guardWithTest method.
      PASSED
      Tested LF caching feature with MethodHandles.catchException method.

      A thread with name "Thread-2497" of 32 threads has thrown exception:
      java.lang.InternalError: BMH.reinvoke=Lambda(a0:L/SpeciesData<LLLLLLLLLLL>,a1:L,a2:I,a3:I,a4:I,a5:L,a6:F,a7:F,a8:I,a9:I,a10:I,a11:I,a12:I,a13:J,a14:J,a15:I,a16:I,a17:I,a18:D,a19:F,a20:J,a21:I,a22:L,a23:F,a24:F,a25:I,a26:L,a27:F,a28:I,a29:I,a30:L,a31:I,a32:J,a33:F,a34:I,a35:I,a36:I,a37:L,a38:L,a39:L,a40:L,a41:L,a42:L,a43:L,a44:L,a45:L,a46:L,a47:L,a48:L,a49:L,a50:L,a51:L)=>{
          t52:L=BoundMethodHandle$Species_L11.argL10(a0:L);
          t53:L=MethodHandle.invokeBasic(t52:L,a36:I);
          t54:L=BoundMethodHandle$Species_L11.argL9(a0:L);
          t55:L=MethodHandle.invokeBasic(t54:L,a35:I);
          t56:L=BoundMethodHandle$Species_L11.argL8(a0:L);
          t57:L=MethodHandle.invokeBasic(t56:L,a34:I);
          t58:L=BoundMethodHandle$Species_L11.argL7(a0:L);
          t59:L=MethodHandle.invokeBasic(t58:L,a33:F);
          t60:L=BoundMethodHandle$Species_L11.argL6(a0:L);
          t61:L=MethodHandle.invokeBasic(t60:L,a32:J);
          t62:L=BoundMethodHandle$Species_L11.argL5(a0:L);
          t63:L=MethodHandle.invokeBasic(t62:L,a31:I);
          t64:L=BoundMethodHandle$Species_L11.argL4(a0:L);
          t65:L=MethodHandle.invokeBasic(t64:L,a29:I);
          t66:L=BoundMethodHandle$Species_L11.argL3(a0:L);
          t67:L=MethodHandle.invokeBasic(t66:L,a28:I);
          t68:L=BoundMethodHandle$Species_L11.argL2(a0:L);
          t69:L=MethodHandle.invokeBasic(t68:L,a27:F);
          t70:L=BoundMethodHandle$Species_L11.argL1(a0:L);
          t71:L=MethodHandle.invokeBasic(t70:L,a25:I);
          t72:L=BoundMethodHandle$Species_L11.argL0(a0:L);
          t73:L=MethodHandle.invokeBasic(t72:L,a1:L,a2:I,a3:I,a4:I,a5:L,a6:F,a7:F,a8:I,a9:I,a10:I,a11:I,a12:I,a13:J,a14:J,a15:I,a16:I,a17:I,a18:D,a19:F,a20:J,a21:I,a22:L,a23:F,a24:F,t71:L,a26:L,t69:L,t67:L,t65:L,a30:L,t63:L,t61:L,t59:L,t57:L,t55:L,t53:L,a37:L,a38:L,a39:L,a40:L,a41:L,a42:L,a43:L,a44:L,a45:L,a46:L,a47:L,a48:L,a49:L,a50:L,a51:L);t73:L}
      at java.lang.invoke.MethodHandleStatics.newInternalError(MethodHandleStatics.java:100)
      at java.lang.invoke.LambdaForm.compileToBytecode(LambdaForm.java:669)
      at java.lang.invoke.LambdaForm.prepare(LambdaForm.java:637)
      at java.lang.invoke.MethodHandle.<init>(MethodHandle.java:459)
      at java.lang.invoke.BoundMethodHandle.<init>(BoundMethodHandle.java:58)
      at java.lang.invoke.BoundMethodHandle$Species_L11.<init>(Species_L11)
      at java.lang.invoke.BoundMethodHandle$Species_L11.make(Species_L11)
      at java.lang.invoke.BoundMethodHandle$Species_L10.copyWithExtendL(Species_L10)
      at java.lang.invoke.MethodHandleImpl.makePairwiseConvertByEditor(MethodHandleImpl.java:228)
      at java.lang.invoke.MethodHandleImpl.makePairwiseConvert(MethodHandleImpl.java:191)
      at java.lang.invoke.MethodHandleImpl.makePairwiseConvert(MethodHandleImpl.java:358)
      at java.lang.invoke.MethodHandle.asTypeUncached(MethodHandle.java:781)
      at java.lang.invoke.MethodHandle.asType(MethodHandle.java:766)
      at java.lang.invoke.MethodHandleImpl$IntrinsicMethodHandle.asTypeUncached(MethodHandleImpl.java:1294)
      at java.lang.invoke.MethodHandle.asType(MethodHandle.java:766)
      at java.lang.invoke.MethodHandleImpl.makeGuardWithCatch(MethodHandleImpl.java:960)
      at java.lang.invoke.MethodHandles.catchException(MethodHandles.java:3143)
      at TestMethods$10.getMH(TestMethods.java:359)
      at TestMethods.getTestCaseMH(TestMethods.java:548)
      at LFMultiThreadCachingTest.lambda$doTest$0(LFMultiThreadCachingTest.java:89)
      at java.lang.Thread.run(Thread.java:804)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
      at java.util.concurrent.ThreadLocalRandom.getProbe(ThreadLocalRandom.java:982)
      at java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2581)
      at java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2330)
      at java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1178)
      at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1107)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.expungeStaleElements(MethodType.java:1291)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.get(MethodType.java:1250)
      at java.lang.invoke.MethodType.makeImpl(MethodType.java:305)
      at java.lang.invoke.MethodType.insertParameterTypes(MethodType.java:403)
      at java.lang.invoke.MemberName.getInvocationType(MemberName.java:168)
      at java.lang.invoke.InvokerBytecodeGenerator.emitStaticInvoke(InvokerBytecodeGenerator.java:864)
      at java.lang.invoke.InvokerBytecodeGenerator.generateCustomizedCodeBytes(InvokerBytecodeGenerator.java:699)
      at java.lang.invoke.InvokerBytecodeGenerator.generateCustomizedCode(InvokerBytecodeGenerator.java:602)
      at java.lang.invoke.LambdaForm.compileToBytecode(LambdaForm.java:663)
      ... 19 more
      java.lang.Error: One ore more threads have thrown unexpected exceptions. See log.
      at LFMultiThreadCachingTest.doTest(LFMultiThreadCachingTest.java:117)
      at jdk.testlibrary.Utils.filterException(Utils.java:355)
      at com.oracle.testlibrary.jsr292.CodeCacheOverflowProcessor.runMHTest(CodeCacheOverflowProcessor.java:70)
      at LambdaFormTestCase$TestRun.doIteration(LambdaFormTestCase.java:124)
      at jdk.testlibrary.TimeLimitedRunner.call(TimeLimitedRunner.java:71)
      at LambdaFormTestCase.runTests(LambdaFormTestCase.java:193)
      at LFMultiThreadCachingTest.main(LFMultiThreadCachingTest.java:145)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)
      FAILED. Caused by One ore more threads have thrown unexpected exceptions. See log.
      Tested LF caching feature with MethodHandles.invoker method.
      PASSED
      Tested LF caching feature with MethodHandles.exactInvoker method.
      PASSED
      Tested LF caching feature with MethodHandles.spreadInvoker method.
      PASSED
      Tested LF caching feature with MethodHandles.arrayElementGetter method.
      PASSED
      Tested LF caching feature with MethodHandles.arrayElementSetter method.
      PASSED
      Tested LF caching feature with MethodHandles.constant method.
      PASSED
      Tested LF caching feature with MethodHandles.identity method.
      PASSED
      Iteration 5:
      Tested LF caching feature with MethodHandles.foldArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.dropArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.explicitCastArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterReturnValue method.
      PASSED
      Tested LF caching feature with MethodHandles.insertArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.permuteArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.throwException method.
      PASSED
      Tested LF caching feature with MethodHandles.guardWithTest method.
      PASSED
      Tested LF caching feature with MethodHandles.catchException method.
      PASSED
      Tested LF caching feature with MethodHandles.invoker method.
      PASSED
      Tested LF caching feature with MethodHandles.exactInvoker method.
      PASSED
      Tested LF caching feature with MethodHandles.spreadInvoker method.
      PASSED
      Tested LF caching feature with MethodHandles.arrayElementGetter method.
      PASSED
      Tested LF caching feature with MethodHandles.arrayElementSetter method.
      PASSED
      Tested LF caching feature with MethodHandles.constant method.
      PASSED
      Tested LF caching feature with MethodHandles.identity method.
      PASSED
      Iteration 6:
      Tested LF caching feature with MethodHandles.foldArguments method.

      A thread with name "Thread-3268" of 32 threads has thrown exception:
      java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
      at java.util.concurrent.ThreadLocalRandom.getProbe(ThreadLocalRandom.java:982)
      at java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2581)
      at java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2330)
      at java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1178)
      at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1107)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.expungeStaleElements(MethodType.java:1291)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.get(MethodType.java:1250)
      at java.lang.invoke.MethodType.makeImpl(MethodType.java:305)
      at java.lang.invoke.MethodType.methodType(MethodType.java:263)
      at TestMethods$Kind.getBasicMH(TestMethods.java:584)
      at TestMethods$Kind.access$900(TestMethods.java:566)
      at TestMethods.methodHandleGenerator(TestMethods.java:631)
      at TestMethods.access$300(TestMethods.java:41)
      at TestMethods$1.getMH(TestMethods.java:69)
      at TestMethods.getTestCaseMH(TestMethods.java:548)
      at LFMultiThreadCachingTest.lambda$doTest$0(LFMultiThreadCachingTest.java:89)
      at java.lang.Thread.run(Thread.java:804)
      java.lang.Error: One ore more threads have thrown unexpected exceptions. See log.
      at LFMultiThreadCachingTest.doTest(LFMultiThreadCachingTest.java:117)
      at jdk.testlibrary.Utils.filterException(Utils.java:355)
      at com.oracle.testlibrary.jsr292.CodeCacheOverflowProcessor.runMHTest(CodeCacheOverflowProcessor.java:70)
      at LambdaFormTestCase$TestRun.doIteration(LambdaFormTestCase.java:124)
      at jdk.testlibrary.TimeLimitedRunner.call(TimeLimitedRunner.java:71)
      at LambdaFormTestCase.runTests(LambdaFormTestCase.java:193)
      at LFMultiThreadCachingTest.main(LFMultiThreadCachingTest.java:145)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)
      FAILED. Caused by One ore more threads have thrown unexpected exceptions. See log.
      Tested LF caching feature with MethodHandles.dropArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.explicitCastArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterReturnValue method.
      PASSED
      Tested LF caching feature with MethodHandles.insertArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.permuteArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.throwException method.
      PASSED
      Tested LF caching feature with MethodHandles.guardWithTest method.
      PASSED
      Tested LF caching feature with MethodHandles.catchException method.
      PASSED
      Tested LF caching feature with MethodHandles.invoker method.
      PASSED
      Tested LF caching feature with MethodHandles.exactInvoker method.
      PASSED
      Tested LF caching feature with MethodHandles.spreadInvoker method.
      PASSED
      Tested LF caching feature with MethodHandles.arrayElementGetter method.
      PASSED
      Tested LF caching feature with MethodHandles.arrayElementSetter method.
      PASSED
      Tested LF caching feature with MethodHandles.constant method.
      PASSED
      Tested LF caching feature with MethodHandles.identity method.
      PASSED
      Iteration 7:
      Tested LF caching feature with MethodHandles.foldArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.dropArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.explicitCastArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterReturnValue method.
      PASSED
      Tested LF caching feature with MethodHandles.insertArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.permuteArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.throwException method.
      PASSED
      Tested LF caching feature with MethodHandles.guardWithTest method.
      PASSED
      Tested LF caching feature with MethodHandles.catchException method.

      A thread with name "Thread-4120" of 32 threads has thrown exception:
      java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
      at java.util.concurrent.ThreadLocalRandom.getProbe(ThreadLocalRandom.java:982)
      at java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2581)
      at java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2330)
      at java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1178)
      at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1107)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.expungeStaleElements(MethodType.java:1291)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.get(MethodType.java:1250)
      at java.lang.invoke.MethodType.makeImpl(MethodType.java:305)
      at java.lang.invoke.MethodType.methodType(MethodType.java:210)
      at java.lang.invoke.LambdaForm.methodType(LambdaForm.java:529)
      at java.lang.invoke.LambdaForm.compileToBytecode(LambdaForm.java:660)
      at java.lang.invoke.LambdaForm.prepare(LambdaForm.java:637)
      at java.lang.invoke.MethodHandle.<init>(MethodHandle.java:459)
      at java.lang.invoke.BoundMethodHandle.<init>(BoundMethodHandle.java:58)
      at java.lang.invoke.BoundMethodHandle$Species_L5.<init>(Species_L5)
      at java.lang.invoke.BoundMethodHandle$Species_L5.make(Species_L5)
      at java.lang.invoke.BoundMethodHandle$Species_L4.copyWithExtendL(Species_L4)
      at java.lang.invoke.MethodHandleImpl.makePairwiseConvertByEditor(MethodHandleImpl.java:228)
      at java.lang.invoke.MethodHandleImpl.makePairwiseConvert(MethodHandleImpl.java:191)
      at java.lang.invoke.MethodHandleImpl.makePairwiseConvert(MethodHandleImpl.java:358)
      at java.lang.invoke.MethodHandle.asTypeUncached(MethodHandle.java:781)
      at java.lang.invoke.MethodHandle.asType(MethodHandle.java:766)
      at java.lang.invoke.MethodHandleImpl$IntrinsicMethodHandle.asTypeUncached(MethodHandleImpl.java:1294)
      at java.lang.invoke.MethodHandle.asType(MethodHandle.java:766)
      at java.lang.invoke.MethodHandleImpl.makeGuardWithCatch(MethodHandleImpl.java:960)
      at java.lang.invoke.MethodHandles.catchException(MethodHandles.java:3143)
      at TestMethods$10.getMH(TestMethods.java:359)
      at TestMethods.getTestCaseMH(TestMethods.java:548)
      at LFMultiThreadCachingTest.lambda$doTest$0(LFMultiThreadCachingTest.java:89)
      at java.lang.Thread.run(Thread.java:804)
      java.lang.Error: One ore more threads have thrown unexpected exceptions. See log.
      at LFMultiThreadCachingTest.doTest(LFMultiThreadCachingTest.java:117)
      at jdk.testlibrary.Utils.filterException(Utils.java:355)
      at com.oracle.testlibrary.jsr292.CodeCacheOverflowProcessor.runMHTest(CodeCacheOverflowProcessor.java:70)
      at LambdaFormTestCase$TestRun.doIteration(LambdaFormTestCase.java:124)
      at jdk.testlibrary.TimeLimitedRunner.call(TimeLimitedRunner.java:71)
      at LambdaFormTestCase.runTests(LambdaFormTestCase.java:193)
      at LFMultiThreadCachingTest.main(LFMultiThreadCachingTest.java:145)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)
      FAILED. Caused by One ore more threads have thrown unexpected exceptions. See log.
      Tested LF caching feature with MethodHandles.invoker method.
      PASSED
      Tested LF caching feature with MethodHandles.exactInvoker method.
      PASSED
      Tested LF caching feature with MethodHandles.spreadInvoker method.
      PASSED
      Tested LF caching feature with MethodHandles.arrayElementGetter method.
      PASSED
      Tested LF caching feature with MethodHandles.arrayElementSetter method.
      PASSED
      Tested LF caching feature with MethodHandles.constant method.
      PASSED
      Tested LF caching feature with MethodHandles.identity method.
      PASSED
      Iteration 8:
      Tested LF caching feature with MethodHandles.foldArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.dropArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.explicitCastArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.filterReturnValue method.
      PASSED
      Tested LF caching feature with MethodHandles.insertArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.permuteArguments method.
      PASSED
      Tested LF caching feature with MethodHandles.throwException method.
      PASSED
      Tested LF caching feature with MethodHandles.guardWithTest method.
      PASSED
      Tested LF caching feat

      ...
      Output overflow:
      JT Harness has limited the test output to the text to that
      at the beginning and the end, so that you can see how the
      test began, and how it completed.

      If you need to see more of the output from the test,
      set the system property javatest.maxOutputSize to a higher
      value. The current value is 100000
      ...

      l.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)
      FAILED. Caused by One ore more threads have thrown unexpected exceptions. See log.
      Tested LF caching feature with MethodHandles.filterReturnValue method.
      PASSED
      Tested LF caching feature with MethodHandles.insertArguments method.

      A thread with name "Thread-60568" of 32 threads has thrown exception:
      java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
      at java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2581)
      at java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2330)
      at java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1178)
      at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1107)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.expungeStaleElements(MethodType.java:1291)
      at java.lang.invoke.MethodType$ConcurrentWeakInternSet.get(MethodType.java:1250)
      at java.lang.invoke.MethodType.makeImpl(MethodType.java:305)
      at java.lang.invoke.MethodType.dropParameterTypes(MethodType.java:583)
      at java.lang.invoke.LambdaFormEditor.bindArgumentType(LambdaFormEditor.java:442)
      at java.lang.invoke.LambdaFormEditor.bindArgumentI(LambdaFormEditor.java:409)
      at java.lang.invoke.BoundMethodHandle.bindArgumentI(BoundMethodHandle.java:103)
      at java.lang.invoke.MethodHandles.insertArgumentPrimitive(MethodHandles.java:2457)
      at java.lang.invoke.MethodHandles.insertArguments(MethodHandles.java:2442)
      at TestMethods$6.getMH(TestMethods.java:236)
      at TestMethods.getTestCaseMH(TestMethods.java:548)
      at LFMultiThreadCachingTest.lambda$doTest$0(LFMultiThreadCachingTest.java:89)
      at java.lang.Thread.run(Thread.java:804)
      java.lang.Error: One ore more threads have thrown unexpected exceptions. See log.
      at LFMultiThreadCachingTest.doTest(LFMultiThreadCachingTest.java:117)
      at jdk.testlibrary.Utils.filterException(Utils.java:355)
      at com.oracle.testlibrary.jsr292.CodeCacheOverflowProcessor.runMHTest(CodeCacheOverflowProcessor.java:70)
      at LambdaFormTestCase$TestRun.doIteration(LambdaFormTestCase.java:124)
      at jdk.testlibrary.TimeLimitedRunner.call(TimeLimitedRunner.java:71)
      at LambdaFormTestCase.runTests(LambdaFormTestCase.java:193)
      at LFMultiThreadCachingTest.main(LFMultiThreadCachingTest.java:145)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)

      Attachments

        Issue Links

          Activity

            People

              martin Martin Buchholz
              jibiche Jibing Chen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: