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

java/foreign/TestStubAllocFailure.java fails with code cache exhaustion

    XMLWordPrintable

Details

    Backports

      Description

        Seen this failure on multiple environments now:

        $ CONF=linux-x86_64-server-fastdebug make test TEST=java/foreign/TestStubAllocFailure.java

        [0.149s][warning][codecache] CodeCache is full. Compiler has been disabled.
        [0.149s][warning][codecache] Try increasing the code cache size using -XX:ReservedCodeCacheSize=
        CodeCache: size=3072Kb used=3071Kb max_used=3071Kb free=0Kb
         bounds [0x00007fb8b9548000, 0x00007fb8b9848000, 0x00007fb8b9848000]
         total_blobs=766 nmethods=24 adapters=655
         compilation: disabled (not enough contiguous free space left)
                      stopped_count=1, restarted_count=0
         full_count=1
        test TestStubAllocFailure.testUpcallAllocFailure(): failure
        java.lang.AssertionError: expected [0] but found [1]
                at org.testng.Assert.fail(Assert.java:99)
                at org.testng.Assert.failNotEquals(Assert.java:1037)
                at org.testng.Assert.assertEqualsImpl(Assert.java:140)
                at org.testng.Assert.assertEquals(Assert.java:122)
                at org.testng.Assert.assertEquals(Assert.java:907)
                at org.testng.Assert.assertEquals(Assert.java:917)
                at UpcallTestHelper$Output.assertSuccess(UpcallTestHelper.java:52)
                at TestStubAllocFailure.testUpcallAllocFailure(TestStubAllocFailure.java:47)
                at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
                at java.base/java.lang.reflect.Method.invoke(Method.java:580)
                at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
                at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
                at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)

        ===============================================
        java/foreign/TestStubAllocFailure.java
        Total tests run: 1, Passes: 0, Failures: 1, Skips: 0
        ===============================================

        STDERR:
        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=
        Error: A JNI error has occurred, please check your installation and try again
        Exception in thread "main" java.lang.VirtualMachineError: Out of space in CodeCache for adapters
        java.lang.Exception: failures: 1
                at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:104)
                at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
                at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
                at java.base/java.lang.reflect.Method.invoke(Method.java:580)
                at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
                at java.base/java.lang.Thread.run(Thread.java:1570)

        Attachments

          Issue Links

            Activity

              People

                jvernee Jorn Vernee
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: