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

[TESTBUG] test/hotspot/jtreg/compiler/codecache/CodeCacheFullCountTest.java fails with java.lang.VirtualMachineError

XMLWordPrintable

    • b12

        We observed test/hotspot/jtreg/compiler/codecache/CodeCacheFullCountTest.java failures sometimes due to `java.lang.VirtualMachineError: Out of space in CodeCache for adapters`. The stdout contains ` full_count=1` (test expects non-zero full_count):

        stdout: [[0.195s][warning][codecache] CodeCache is full. Compiler has been disabled.
        [0.195s][warning][codecache] Try increasing the code cache size using -XX:ReservedCodeCacheSize=
        CodeCache: size=2496Kb used=2495Kb max_used=2495Kb free=0Kb
         bounds [0x00007f122c413000, 0x00007f122c683000, 0x00007f122c683000]
         total_blobs=765 nmethods=25 adapters=654
         compilation: disabled (not enough contiguous free space left)
                      stopped_count=0, restarted_count=0
         full_count=1
        ];
         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=
        Exception in thread "main" java.lang.VirtualMachineError: Out of space in CodeCache for adapters

        Exception: java.lang.VirtualMachineError thrown from the UncaughtExceptionHandler in thread "main"
        ]
         exitValue = 1

        java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
        at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:490)
        at CodeCacheFullCountTest.runTest(CodeCacheFullCountTest.java:60)
        at CodeCacheFullCountTest.main(CodeCacheFullCountTest.java:43)
        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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
        at java.base/java.lang.Thread.run(Thread.java:1570)

              myano Masanori Yano
              jiangli Jiangli Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: