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

java/lang/invoke/LFCaching/LFSingleThreadCachingTest.java failed with "Out of space in CodeCache for adapters"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • b156

        Tested LF caching feature with MethodHandles.explicitCastArguments method.
        OpenJDK 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
        OpenJDK 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=

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

        java.lang.VirtualMachineError: Out of space in CodeCache for adapters
        java.lang.VirtualMachineError: Out of space in CodeCache for adapters
        at java.base/java.lang.Throwable.getOurStackTrace(Throwable.java:828)
        at java.base/java.lang.Throwable.printStackTrace(Throwable.java:660)
        at java.base/java.lang.Throwable.printStackTrace(Throwable.java:648)
        at java.base/java.lang.Throwable.printStackTrace(Throwable.java:639)
        at com.oracle.testlibrary.jsr292.CodeCacheOverflowProcessor.runMHTest(CodeCacheOverflowProcessor.java:75)
        at LambdaFormTestCase$TestRun.doIteration(LambdaFormTestCase.java:124)
        at jdk.testlibrary.TimeLimitedRunner.call(TimeLimitedRunner.java:71)
        at LambdaFormTestCase.runTests(LambdaFormTestCase.java:193)
        at LFSingleThreadCachingTest.main(LFSingleThreadCachingTest.java:79)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:538)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
        at java.base/java.lang.Thread.run(Thread.java:844)
        FAILED. Caused by Out of space in CodeCache for adapters
        Tested LF caching feature with MethodHandles.filterArguments method.

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

        java.lang.VirtualMachineError: Out of space in CodeCache for adapters
        at java.base/jdk.internal.misc.Unsafe.defineAnonymousClass0(Native Method)
        at java.base/jdk.internal.misc.Unsafe.defineAnonymousClass(Unsafe.java:1204)
        at java.base/java.lang.invoke.InvokerBytecodeGenerator.loadAndInitializeInvokerClass(InvokerBytecodeGenerator.java:288)
        at java.base/java.lang.invoke.InvokerBytecodeGenerator.loadMethod(InvokerBytecodeGenerator.java:280)
        at java.base/java.lang.invoke.InvokerBytecodeGenerator.generateCustomizedCode(InvokerBytecodeGenerator.java:677)
        at java.base/java.lang.invoke.LambdaForm.compileToBytecode(LambdaForm.java:846)
        at java.base/java.lang.invoke.LambdaForm.prepare(LambdaForm.java:808)
        at java.base/java.lang.invoke.MethodHandle.<init>(MethodHandle.java:464)
        at java.base/java.lang.invoke.BoundMethodHandle.<init>(BoundMethodHandle.java:58)
        at java.base/java.lang.invoke.BoundMethodHandle$Species_IL6.<init>(Species_IL6)
        at java.base/java.lang.invoke.BoundMethodHandle$Species_IL6.make(Species_IL6)
        at java.base/java.lang.invoke.BoundMethodHandle$Species_IL5.copyWithExtendL(Species_IL5)
        at java.base/java.lang.invoke.MethodHandles.filterArgument(MethodHandles.java:3650)
        at java.base/java.lang.invoke.MethodHandles.filterArguments(MethodHandles.java:3636)
        at TestMethods$4.getMH(TestMethods.java:180)
        at TestMethods.getTestCaseMH(TestMethods.java:548)
        at LFSingleThreadCachingTest.doTest(LFSingleThreadCachingTest.java:65)
        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 LFSingleThreadCachingTest.main(LFSingleThreadCachingTest.java:79)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:538)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
        at java.base/java.lang.Thread.run(Thread.java:844)
        java.lang.Error: 1 of 1958 test cases FAILED!
        Rerun the test with the same "-Dseed=" option as in the log file!
        at LambdaFormTestCase$TestRun.checkPassed(LambdaFormTestCase.java:147)
        at LambdaFormTestCase.runTests(LambdaFormTestCase.java:198)
        at LFSingleThreadCachingTest.main(LFSingleThreadCachingTest.java:79)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:538)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
        at java.base/java.lang.Thread.run(Thread.java:844)

        JavaTest Message: Test threw exception: java.lang.Error: 1 of 1958 test cases FAILED!
        Rerun the test with the same "-Dseed=" option as in the log file!
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.Error: 1 of 1958 test cases FAILED! Rerun the test with the same "-Dseed=" option as in the log file!

              dpochepk Dmitrij Pochepko
              jjiang John Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: