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

java/lang/invoke/MethodHandlesInsertArgumentsTest.java fails with -XX:TieredStopAtLevel=1

    Details

      Description

      Test
      java/lang/invoke/MethodHandlesInsertArgumentsTest.java
      fails with -XX:TieredStopAtLevel=1

      The exception:
      Java HotSpot(TM) 64-Bit Server VM warning: outputStream::do_vsnprintf output truncated -- buffer length is 2000 bytes but 2018 bytes are needed.
      Java HotSpot(TM) 64-Bit Server VM warning: outputStream::do_vsnprintf output truncated -- buffer length is 2000 bytes but 2036 bytes are needed.
      Java HotSpot(TM) 64-Bit Server VM warning: outputStream::do_vsnprintf output truncated -- buffer length is 2000 bytes but 2054 bytes are needed.
      Java HotSpot(TM) 64-Bit Server VM warning: outputStream::do_vsnprintf output truncated -- buffer length is 2000 bytes but 2072 bytes are needed.
      Java HotSpot(TM) 64-Bit Server VM warning: CodeHeap 'non-profiled nmethods' is full. Compiler has been disabled.
      Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code heap size using -XX:NonProfiledCodeHeapSize=
      Java HotSpot(TM) 64-Bit Server VM warning: outputStream::do_vsnprintf output truncated -- buffer length is 2000 bytes but 2107 bytes are needed.

      Non-critical exception caught becuse of code cache size is not enough to run all test cases.

      JavaTest Message: JUnit Failure: testInsertArgumentsPosZero(test.java.lang.invoke.MethodHandlesInsertArgumentsTest): Unexpected exception, expected<java.lang.ClassCastException> but was<java.lang.VirtualMachineError>
      java.lang.Exception: Unexpected exception, expected<java.lang.ClassCastException> but was<java.lang.VirtualMachineError>
      at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:31)
      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
      at org.junit.runners.Suite.runChild(Suite.java:128)
      at org.junit.runners.Suite.runChild(Suite.java:24)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
      at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
      at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
      at org.junit.runner.JUnitCore.run(JUnitCore.java:127)
      at org.junit.runner.JUnitCore.runClasses(JUnitCore.java:76)
      at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:76)
      at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:43)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: java.lang.VirtualMachineError: Out of space in CodeCache for method handle intrinsic
      at java.base/java.lang.invoke.MethodHandleNatives.resolve(Native Method)
      at java.base/java.lang.invoke.MemberName$Factory.resolve(MemberName.java:1084)
      at java.base/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:1111)
      at java.base/java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:3433)
      at java.base/java.lang.invoke.Invokers.invokeBasicMethod(Invokers.java:167)
      at java.base/java.lang.invoke.Invokers.basicInvoker(Invokers.java:93)
      at java.base/java.lang.invoke.LambdaForm$NamedFunction.<init>(LambdaForm.java:1134)
      at java.base/java.lang.invoke.LambdaForm$Name.<init>(LambdaForm.java:1380)
      at java.base/java.lang.invoke.DelegatingMethodHandle.makeReinvokerForm(DelegatingMethodHandle.java:156)
      at java.base/java.lang.invoke.DelegatingMethodHandle.makeReinvokerForm(DelegatingMethodHandle.java:116)
      at java.base/java.lang.invoke.BoundMethodHandle.makeReinvoker(BoundMethodHandle.java:136)
      at java.base/java.lang.invoke.DirectMethodHandle.rebind(DirectMethodHandle.java:149)
      at java.base/java.lang.invoke.MethodHandles.insertArguments(MethodHandles.java:4909)
      at test.java.lang.invoke.MethodHandlesInsertArgumentsTest.testInsertArgumentsPosZero(MethodHandlesInsertArgumentsTest.java:121)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:22)
      ... 32 more

      JavaTest Message: JUnit Failure: testInsertArgumentsIncorrectParam(test.java.lang.invoke.MethodHandlesInsertArgumentsTest): Unexpected exception, expected<java.lang.ClassCastException> but was<java.lang.VirtualMachineError>
      java.lang.Exception: Unexpected exception, expected<java.lang.ClassCastException> but was<java.lang.VirtualMachineError>
      at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:31)
      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
      at org.junit.runners.Suite.runChild(Suite.java:128)
      at org.junit.runners.Suite.runChild(Suite.java:24)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
      at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
      at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
      at org.junit.runner.JUnitCore.run(JUnitCore.java:127)
      at org.junit.runner.JUnitCore.runClasses(JUnitCore.java:76)
      at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:76)
      at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:43)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: java.lang.VirtualMachineError: Out of space in CodeCache for method handle intrinsic
      at java.base/java.lang.invoke.MethodHandleNatives.resolve(Native Method)
      at java.base/java.lang.invoke.MemberName$Factory.resolve(MemberName.java:1084)
      at java.base/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:1111)
      at java.base/java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:3433)
      at java.base/java.lang.invoke.Invokers.invokeBasicMethod(Invokers.java:167)
      at java.base/java.lang.invoke.Invokers.basicInvoker(Invokers.java:93)
      at java.base/java.lang.invoke.LambdaForm$NamedFunction.<init>(LambdaForm.java:1134)
      at java.base/java.lang.invoke.LambdaForm$Name.<init>(LambdaForm.java:1380)
      at java.base/java.lang.invoke.DelegatingMethodHandle.makeReinvokerForm(DelegatingMethodHandle.java:156)
      at java.base/java.lang.invoke.DelegatingMethodHandle.makeReinvokerForm(DelegatingMethodHandle.java:116)
      at java.base/java.lang.invoke.BoundMethodHandle.makeReinvoker(BoundMethodHandle.java:136)
      at java.base/java.lang.invoke.DirectMethodHandle.rebind(DirectMethodHandle.java:149)
      at java.base/java.lang.invoke.MethodHandles.insertArguments(MethodHandles.java:4909)
      at test.java.lang.invoke.MethodHandlesInsertArgumentsTest.testInsertArgumentsIncorrectParam(MethodHandlesInsertArgumentsTest.java:127)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:22)
      ... 32 more

      java.lang.Exception: JUnit test failure
      at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:92)
      at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:43)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)

      JavaTest Message: Test threw exception: java.lang.Exception: JUnit test failure
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.Exception: JUnit test failure

        Attachments

          Activity

            People

            • Assignee:
              vlivanov Vladimir Ivanov
              Reporter:
              lmesnik Leonid Mesnik
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: