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

compiler/codecache/CodeCacheFullCountTest.java fails with Initial size of CodeCache is too small

XMLWordPrintable

      The following test failed in the JDK23 CI:

      compiler/codecache/CodeCacheFullCountTest.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(7/247)----------
      command: main CodeCacheFullCountTest
      reason: Assumed action based on file name: run main CodeCacheFullCountTest
      started: Tue Feb 20 09:39:05 GMT 2024
      Mode: agentvm
      Agent id: 6
      finished: Tue Feb 20 09:39:23 GMT 2024
      elapsed time (seconds): 17.624
      ----------configuration:(14/2009)----------

      <snip>

      ----------System.out:(5/2608)----------
      Command line: [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-23+11-763/macosx-aarch64-debug.jdk/jdk-23/fastdebug/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/412fde1c-3e26-4c3d-b41e-bab008e2c85d-S252/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/33a54bc1-5639-460d-9b04-5e85baa171ed/runs/d1a3e7cb-38b2-4500-812e-706ebd6fe63b/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_2/classes/0/compiler/codecache/CodeCacheFullCountTest.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-23+11-763/src.full/open/test/hotspot/jtreg/compiler/codecache:/System/Volumes/Data/mesos/work_dir/slaves/412fde1c-3e26-4c3d-b41e-bab008e2c85d-S252/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/33a54bc1-5639-460d-9b04-5e85baa171ed/runs/d1a3e7cb-38b2-4500-812e-706ebd6fe63b/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_2/classes/0/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jtreg.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/junit-platform-console-standalone-1.9.2.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/testng-7.3.0.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jcommander-1.82.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/guice-5.1.0.jar -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/21/35/bundles/macos-aarch64/jdk-21_macos-aarch64_bin.tar.gz/jdk-21.jdk/Contents/Home -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/412fde1c-3e26-4c3d-b41e-bab008e2c85d-S252/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/33a54bc1-5639-460d-9b04-5e85baa171ed/runs/d1a3e7cb-38b2-4500-812e-706ebd6fe63b/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_2/tmp -Xcomp -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation -XX:+DeoptimizeALot -XX:ReservedCodeCacheSize=2496k -XX:-UseCodeCacheFlushing -XX:-MethodFlushing CodeCacheFullCountTest WasteCodeCache ]
      [2024-02-20T09:39:21.513520Z] Gathering output for process 22884
      [2024-02-20T09:39:22.290235Z] Waiting for completion for process 22884
      [2024-02-20T09:39:22.572671Z] Waiting for completion finished for process 22884
      Output and diagnostic info for process 22884 was saved into 'pid-22884-output.log'
      ----------System.err:(27/1526)----------
       stdout: [[1.477s][warning][codecache] CodeCache is full. Compiler has been disabled.
      [1.477s][warning][codecache] Try increasing the code cache size using -XX:ReservedCodeCacheSize=
      CodeCache: size=2496Kb used=2479Kb max_used=2487Kb free=16Kb
       bounds [0x0000000104790000, 0x0000000104a00000, 0x0000000104a00000]
       total_blobs=1206, nmethods=529, adapters=630, full_count=1
      Compilation: disabled (not enough contiguous free space left), stopped_count=0, restarted_count=0
      Error occurred during initialization of VM
      java.lang.OutOfMemoryError: Initial size of CodeCache is too small

      ];
       stderr: [Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
      Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
      Java HotSpot(TM) 64-Bit Server VM warning: C2 initialization failed. Shutting down all compilers
      ]
       exitValue = 1

      java.lang.RuntimeException: VM finished with exit code 1
      at CodeCacheFullCountTest.runTest(CodeCacheFullCountTest.java:72)
      at CodeCacheFullCountTest.main(CodeCacheFullCountTest.java:44)
      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:1575)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: VM finished with exit code 1

            yyang Yi Yang
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: