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

CompilationPolicy creates too many compiler threads when code cache space is scarce

XMLWordPrintable

      The test from 'tier1' set compiler/codecache/CheckSegmentedCodeCache.java failed on the Xeon(R) 6780E with log:
      #make test TEST="compiler/codecache/CheckSegmentedCodeCache.java"
      ...
      Test summary
      ==============================
         TEST TOTAL PASS FAIL ERROR SKIP
         jtreg:test/hotspot/jtreg/compiler/codecache/CheckSegmentedCodeCache.java
      >> 1 0 1 0 0 <<
      ==============================

      # cat ./build/linux-x86_64-server-release/test-support/jtreg_test_hotspot_jtreg_compiler_codecache_CheckSegmentedCodeCache_java/compiler/codecache/CheckSegmentedCodeCache.jtr
      ...
      Command line: [/workloads/openjdk_ws/jdk_mainline/build/linux-x86_64-server-release/images/jdk/bin/java -cp /workloads/openjdk_ws/jdk_mainline/build/linux-x86_64-server-release/test-support/jtreg_test_hotspot_jtreg_compiler_codecache_CheckSegmentedCodeCache_java/classes/0/compiler/codecache/CheckSegmentedCodeCache.d:/workloads/openjdk_ws/jdk_mainline/test/hotspot/jtreg/compiler/codecache:/workloads/openjdk_ws/jdk_mainline/build/linux-x86_64-server-release/test-support/jtreg_test_hotspot_jtreg_compiler_codecache_CheckSegmentedCodeCache_java/classes/0/test/lib:/workloads/openjdk_ws/jdk_mainline/test/lib:/workloads/openjdk_ws/jtreg/build/images/jtreg/lib/javatest.jar:/workloads/openjdk_ws/jtreg/build/images/jtreg/lib/jtreg.jar -XX:+SegmentedCodeCache -XX:ReservedCodeCacheSize=10M -XX:NonNMethodCodeHeapSize=6M -XX:ProfiledCodeHeapSize=5M -XX:NonProfiledCodeHeapSize=5M -version ]
      [2025-04-15T22:38:08.104095879Z] Gathering output for process 261772
      [2025-04-15T22:38:08.116838151Z] Waiting for completion for process 261772
      [2025-04-15T22:38:08.117198087Z] Waiting for completion finished for process 261772
      ----------System.err:(19/1070)----------
       stdout: [Error occurred during initialization of VM
      Not enough space in non-nmethod code heap to run VM: 6144K < 7312K
      ];
       stderr: []
       exitValue = 1

      java.lang.RuntimeException: 'Invalid code heap sizes' missing from stdout/stderr

            Unassigned Unassigned
            vaivanov Vladimir Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: