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

C2: Hit MemLimit in PhaseCFG::global_code_motion (again)

XMLWordPrintable

      Seems similar to JDK-8333697

      Test: applications/javafuzzer/LongRunningTests.java🎲

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/526fbd26-20de-495c-9a19-a04adc16f7d1-S7006/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b68ef917-a19b-47f5-8bd7-dd7e326d1875/runs/e38ec702-dda6-4d82-8b3c-56a30ad7fd0a/workspace/open/src/hotspot/share/compiler/compilationMemoryStatistic.cpp:935), pid=3493335, tid=3493356
      # fatal error: c2 (33) Test::lMeth((I)J): Hit MemLimit - limit: 1073741824 now: 1073768864
      #
      # JRE version: Java(TM) SE Runtime Environment (26.0+21) (fastdebug build 26-ea+21-2159)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 26-ea+21-2159, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /tmp/fuzzer.tmp.bPMGnFaD7h/core.3493335)
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

      --------------- S U M M A R Y ------------

      Command Line: -XX:+UnlockDiagnosticVMOptions -XX:RepeatCompilation=9 -Xmx1G -XX:+IgnoreUnrecognizedVMOptions -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*Test*::* -XX:-TieredCompilation -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+StressLCM -XX:+StressGCM -XX:+StressIGVN -XX:+StressCCP -XX:+StressMacroExpansion -XX:+StressLoopPeeling -XX:+VerifyLoopOptimizations -XX:VerifyIterativeGVN=10 -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/25/37/bundles/linux-x64/jdk-25_linux-x64_bin.tar.gz/jdk-25 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/526fbd26-20de-495c-9a19-a04adc16f7d1-S7128/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a13b8cf5-8b3b-4fb4-b563-5ce2bcb539af/runs/d2b656ee-2cec-404b-9ed1-161652fac792/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_javafuzzer_LongRunningTests_java/tmp Test

      Host: AMD EPYC 9J14 96-Core Processor, 12 cores, 23G, Oracle Linux Server release 8.10
      Time: Thu Oct 23 20:47:29 2025 UTC elapsed time: 157.576128 seconds (0d 0h 2m 37s)

      --------------- T H R E A D ---------------

      Current thread (0x00007fe050160890): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=3493356, stack(0x00007fe035dff000,0x00007fe035eff000) (1024K)]


      Current CompileTask:
      C2:157576 33 !b Test::lMeth (1816 bytes)

      Stack: [0x00007fe035dff000,0x00007fe035eff000], sp=0x00007fe035ef9d10, free space=1003k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x1c5a763] VMError::report(outputStream*, bool)+0x3003 (compilationMemoryStatistic.cpp:935)
      V [libjvm.so+0x1c5e183] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void const*, void const*, char const*, int, unsigned long)+0x5a3 (vmError.cpp:1877)
      V [libjvm.so+0xc5c01b] report_fatal(VMErrorType, char const*, int, char const*, ...)+0x10b (debug.cpp:223)
      V [libjvm.so+0xb53fbf] CompilationMemoryStatistic::on_arena_chunk_allocation(unsigned long, int, unsigned long*)+0x6ef (compilationMemoryStatistic.cpp:935)
      V [libjvm.so+0x70b196] ChunkPool::allocate_chunk(Arena*, unsigned long, AllocFailStrategy::AllocFailEnum)+0x166 (arena.cpp:195)
      V [libjvm.so+0x70bff4] Arena::grow(unsigned long, AllocFailStrategy::AllocFailEnum)+0x74 (arena.cpp:329)
      V [libjvm.so+0x151f679] PhaseLive::add_liveout(Block_List&, Block*, IndexSet*, VectorSet&)+0x659 (arena.hpp:154)
      V [libjvm.so+0x152097f] PhaseLive::compute(unsigned int)+0xecf (live.cpp:138)
      V [libjvm.so+0xf98f58] PhaseCFG::global_code_motion()+0x1008 (gcm.cpp:1856)
      V [libjvm.so+0xf99348] PhaseCFG::do_global_code_motion()+0x68 (gcm.cpp:1922)
      V [libjvm.so+0xb840a3] Compile::Code_Gen()+0x603 (compile.cpp:3057)
      V [libjvm.so+0xb89a63] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x2123 (compile.cpp:893)
      V [libjvm.so+0x9a3933] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x4a3 (c2compiler.cpp:147)
      V [libjvm.so+0xb98f44] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x854 (compileBroker.cpp:2353)
      V [libjvm.so+0xb9a6d0] CompileBroker::compiler_thread_loop()+0x530 (compileBroker.cpp:1989)
      V [libjvm.so+0x10f208b] JavaThread::thread_main_inner()+0x13b (javaThread.cpp:771)
      V [libjvm.so+0x1b633d6] Thread::call_run()+0xb6 (thread.cpp:243)
      V [libjvm.so+0x17d0108] thread_native_entry(Thread*)+0x128 (os_linux.cpp:883)

        1. hs_err_pid3493335.log
          74 kB
        2. replay_pid3493335.log
          144 kB
        3. Test.java
          16 kB

            Unassigned Unassigned
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: