JDK-8349772 : C2 hits MemLimit during incremental inlining
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 24,25
  • Priority: P4
  • Status: In Progress
  • Resolution: Unresolved
  • Submitted: 2025-02-11
  • Updated: 2025-05-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26Unresolved
Related Reports
Relates :  
Relates :  
Description
Test: vmTestbase/vm/mlvm/meth/stress/compiler/i2c_c2i/Test.java

-Xcomp -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation -XX:+DeoptimizeALot

For random generator using seed: 6316116219721734593
To re-run test with same seed value please add "-Djdk.test.lib.random.seed=6316116219721734593" to command line.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/System/Volumes/Data/mesos/work_dir/slaves/9d672765-c677-49d5-b011-1d8d922c9421-S1581/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a7570317-49d1-4abf-9fb0-08bb7f4a6284/runs/dacab4f1-d071-445f-bf1e-fc4307dea320/workspace/open/src/hotspot/share/compiler/compilationMemoryStatistic.cpp:567), pid=46837, tid=28675
#  fatal error: c2 java/lang/invoke/LambdaForm$MH+0x00000fc001593000::invoke((Ljava/lang/Object;)Ljava/lang/Object;): Hit MemLimit (limit: 1073741824 now: 1073769944)
#
# JRE version: Java(TM) SE Runtime Environment (25.0+10) (fastdebug build 25-ea+10-LTS-1011)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-ea+10-LTS-1011, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Core dump will be written. Default location: core.46837
#
# 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: -Dtest.vm.opts=-XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/23/37/bundles/macos-aarch64/jdk-23_macos-aarch64_bin.tar.gz/jdk-23.jdk/Contents/Home -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/b9ab8c44-e044-401b-814f-5af393738dc1-S1342/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5af4c72c-4af3-48c6-a729-6a6245207718/runs/7f3d59d7-74d0-496d-babf-26bc542208e4/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_mlvm/tmp -Dtest.tool.vm.opts=-J-XX:MaxRAMPercentage=6.25 -J-Dtest.boot.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/23/37/bundles/macos-aarch64/jdk-23_macos-aarch64_bin.tar.gz/jdk-23.jdk/Contents/Home -J-Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/b9ab8c44-e044-401b-814f-5af393738dc1-S1342/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5af4c72c-4af3-48c6-a729-6a6245207718/runs/7f3d59d7-74d0-496d-babf-26bc542208e4/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_mlvm/tmp -Dtest.compiler.opts= -Dtest.java.opts=-XX:-TieredCompilation -XX:+AlwaysIncrementalInline -Dtest.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-25+10-1011/macosx-aarch64-debug.jdk/jdk-25/fastdebug -Dcompile.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-25+10-1011/macosx-aarch64-debug.jdk/jdk-25/fastdebug -Dtest.timeout.factor=4.0 -Dtest.nativepath=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-25+10-1011/macosx-aarch64-debug.test/hotspot/jtreg/native -Dtest.root=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-25+10-1011/src.full/open/test/hotspot/jtreg -Dtest.name=vmTestbase/vm/mlvm/meth/stress/compiler/i2c_c2i/Test.java -Dtest.file=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-25+10-1011/src.full/open/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/i2c_c2i/Test.java -Dtest.src=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-25+10-1011/src.full/open/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/i2c_c2i -Dtest.src.path=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-25+10-1011/src.full/open/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/i2c_c2i:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-25+10-1011/src.full/open/test/hotspot/jtreg/vmTestbase:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-25+10-1011/src.full/open/test/lib -Dtest.classes=/System/Volumes/Data/mesos/work_dir/slaves/b9ab8c44-e044-401b-814f-5af393738dc1-S1342/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5af4c72c-4af3-48c6-a729-6a6245207718/runs/7f3d59d7-74d0-496d-babf-26bc542208e4/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_mlvm/classes/2/vmTestbase/vm/mlvm/meth/stress/compiler/i2c_c2i/Test.d -Dtest.class.path=/System/Volumes/Data/mesos/work_dir/slaves/b9ab8c44-e044-401b-814f-5af393738dc1-S1342/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5af4c72c-4af3-48c6-a729-6a6245207718/runs/7f3d59d7-74d0-496d-babf-26bc542208e4/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_mlvm/classes/2/vmTestbase/vm/mlvm/meth/stress/compiler/i2c_c2i/Test.d:/System/Volumes/Data/mesos/work_dir/slaves/b9ab8c44-e044-401b-814f-5af393738dc1-S1342/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5af4c72c-4af3-48c6-a729-6a6245207718/runs/7f3d59d7-74d0-496d-babf-26bc542208e4/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_mlvm/classes/2/vmTestbase:/System/Volumes/Data/mesos/work_dir/slaves/b9ab8c44-e044-401b-814f-5af393738dc1-S1342/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5af4c72c-4af3-48c6-a729-6a6245207718/runs/7f3d59d7-74d0-496d-babf-26bc542208e4/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_mlvm/classes/2/test/lib -Dtest.class.path.prefix=/System/Volumes/Data/mesos/work_dir/slaves/b9ab8c44-e044-401b-814f-5af393738dc1-S1342/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5af4c72c-4af3-48c6-a729-6a6245207718/runs/7f3d59d7-74d0-496d-babf-26bc542208e4/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_mlvm/classes/2/vmTestbase/vm/mlvm/meth/stress/compiler/i2c_c2i/Test.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-25+10-1011/src.full/open/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/i2c_c2i:/System/Volumes/Data/mesos/work_dir/slaves/b9ab8c44-e044-401b-814f-5af393738dc1-S1342/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5af4c72c-4af3-48c6-a729-6a6245207718/runs/7f3d59d7-74d0-496d-babf-26bc542208e4/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_mlvm/classes/2/vmTestbase:/System/Volumes/Data/mesos/work_dir/slaves/b9ab8c44-e044-401b-814f-5af393738dc1-S1342/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5af4c72c-4af3-48c6-a729-6a6245207718/runs/7f3d59d7-74d0-496d-babf-26bc542208e4/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_mlvm/classes/2/test/lib -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/23/37/bundles/macos-aarch64/jdk-23_macos-aarch64_bin.tar.gz/jdk-23.jdk/Contents/Home -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/b9ab8c44-e044-401b-814f-5af393738dc1-S1342/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5af4c72c-4af3-48c6-a729-6a6245207718/runs/7f3d59d7-74d0-496d-babf-26bc542208e4/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_mlvm/tmp -XX:-TieredCompilation -XX:+AlwaysIncrementalInline -Djava.library.path=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-25+10-1011/macosx-aarch64-debug.test/hotspot/jtreg/native com.sun.javatest.regtest.agent.MainWrapper /System/Volumes/Data/mesos/work_dir/slaves/b9ab8c44-e044-401b-814f-5af393738dc1-S1342/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5af4c72c-4af3-48c6-a729-6a6245207718/runs/7f3d59d7-74d0-496d-babf-26bc542208e4/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_mlvm/vmTestbase/vm/mlvm/meth/stress/compiler/i2c_c2i/Test.d/main.0.jta

Host:  "Mac14,3" arm64, 8 cores, 16G, Darwin 22.3.0, macOS 13.2.1 (22D68)
Time: Tue Feb 11 00:20:56 2025 GMT elapsed time: 9.558034 seconds (0d 0h 0m 9s)

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

Current thread (0x000000011c017010):  JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=28675, stack(0x000000016ebf0000,0x000000016edf3000) (2060K)]


Current CompileTask:
C2:9558 2980             java.lang.invoke.LambdaForm$MH/0x00000fc001593000::invoke (122 bytes)

Stack: [0x000000016ebf0000,0x000000016edf3000],  sp=0x000000016edee1f0,  free space=2040k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.dylib+0x1160f14]  VMError::report(outputStream*, bool)+0x1aac  (compilationMemoryStatistic.cpp:567)
V  [libjvm.dylib+0x1164500]  VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void const*, void const*, char const*, int, unsigned long)+0x548
V  [libjvm.dylib+0x578010]  DebuggingContext::~DebuggingContext()+0x0
V  [libjvm.dylib+0x4c64b8]  CompilationMemoryStatistic::on_arena_change(long, Arena const*)+0x3bc
V  [libjvm.dylib+0x2516e0]  Arena::grow(unsigned long, AllocFailStrategy::AllocFailEnum)+0xc4
V  [libjvm.dylib+0xdf3480]  Node::out_grow(unsigned int)+0x1c8
V  [libjvm.dylib+0x212b10]  Node::set_req(unsigned int, Node*)+0x128
V  [libjvm.dylib+0x7cf360]  GraphKit::clone_map()+0xf8
V  [libjvm.dylib+0x7d1a6c]  GraphKit::set_map_clone(SafePointNode*)+0x18
V  [libjvm.dylib+0xe7a708]  Parse::throw_to_exit(SafePointNode*)+0x34
V  [libjvm.dylib+0xe7a670]  Parse::do_exceptions()+0x134
V  [libjvm.dylib+0xe7960c]  Parse::do_one_block()+0x508
V  [libjvm.dylib+0xe77638]  Parse::do_all_blocks()+0x480
V  [libjvm.dylib+0xe73e1c]  Parse::Parse(JVMState*, ciMethod*, float)+0xa34
V  [libjvm.dylib+0x39a520]  ParseGenerator::generate(JVMState*)+0x104
V  [libjvm.dylib+0x39d4e0]  CallGenerator::do_late_inline_helper()+0x648
V  [libjvm.dylib+0x4d870c]  Compile::inline_incrementally_one()+0xec
V  [libjvm.dylib+0x4d8c50]  Compile::inline_incrementally(PhaseIterGVN&)+0x27c
V  [libjvm.dylib+0x4d19a4]  Compile::Optimize()+0x230
V  [libjvm.dylib+0x4d03fc]  Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x138c
V  [libjvm.dylib+0x398a80]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1e0
V  [libjvm.dylib+0x4ef140]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x868
V  [libjvm.dylib+0x4ee570]  CompileBroker::compiler_thread_loop()+0x348
V  [libjvm.dylib+0x8c27dc]  JavaThread::thread_main_inner()+0x1a8
V  [libjvm.dylib+0x10ae4b4]  Thread::call_run()+0xf4
V  [libjvm.dylib+0xe47d14]  thread_native_entry(Thread*)+0x138
C  [libsystem_pthread.dylib+0x706c]  _pthread_start+0x94
Lock stack of current Java thread (top to bottom):

Comments
This also showed up with JDK 24. I'm tentatively deferring this to JDK 26 for now. Feel free to still integrate into JDK 25 if the fix is ready in time.
20-05-2025

Also test: vmTestbase/jit/t/t105/t105.java # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S742/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/712d8462-c469-4766-909f-a0415eb8d963/runs/ad7f6fbf-9057-4567-be32-4465c34b82b2/workspace/open/src/hotspot/share/compiler/compilationMemoryStatistic.cpp:567), pid=3214223, tid=3214265 # fatal error: c2 sun/security/util/KnownOIDs::<clinit>(()V): Hit MemLimit (limit: 1073741824 now: 1073893648) # # JRE version: Java(TM) SE Runtime Environment (25.0+10) (fastdebug build 25-ea+10-LTS-1016) # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-ea+10-LTS-1016, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-aarch64) # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S885/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b3208031-50bd-4058-9e50-6325669eb865/runs/ceb4ec08-09bd-4881-8886-c19670e8111a/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/scratch/1/core.3214223) # # 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: -Dtest.vm.opts=-XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/23/37/bundles/linux-aarch64/jdk-23_linux-aarch64_bin.tar.gz/jdk-23 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S885/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b3208031-50bd-4058-9e50-6325669eb865/runs/ceb4ec08-09bd-4881-8886-c19670e8111a/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/tmp -Dtest.tool.vm.opts=-J-XX:MaxRAMPercentage=6.25 -J-Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/23/37/bundles/linux-aarch64/jdk-23_linux-aarch64_bin.tar.gz/jdk-23 -J-Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S885/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b3208031-50bd-4058-9e50-6325669eb865/runs/ceb4ec08-09bd-4881-8886-c19670e8111a/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/tmp -Dtest.compiler.opts= -Dtest.java.opts=-XX:+UnlockDiagnosticVMOptions -XX:-TieredCompilation -XX:+StressArrayCopyMacroNode -XX:+StressLCM -XX:+StressGCM -XX:+StressIGVN -XX:+StressCCP -XX:+StressMacroExpansion -XX:+StressMethodHandleLinkerInlining -XX:+StressCompiledExceptionHandlers -Dtest.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk-25+10-1016/linux-aarch64-debug.jdk/jdk-25/fastdebug -Dcompile.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk-25+10-1016/linux-aarch64-debug.jdk/jdk-25/fastdebug -Dtest.timeout.factor=4.0 -Dtest.nativepath=/opt/mach5/mesos/work_dir/jib-master/install/jdk-25+10-1016/linux-aarch64-debug.test/hotspot/jtreg/native -Dtest.root=/opt/mach5/mesos/work_dir/jib-master/install/jdk-25+10-1016/src.full/open/test/hotspot/jtreg -Dtest.name=vmTestbase/jit/t/t105/t105.java -Dtest.file=/opt/mach5/mesos/work_dir/jib-master/install/jdk-25+10-1016/src.full/open/test/hotspot/jtreg/vmTestbase/jit/t/t105/t105.java -Dtest.src=/opt/mach5/mesos/work_dir/jib-master/install/jdk-25+10-1016/src.full/open/test/hotspot/jtreg/vmTestbase/jit/t/t105 -Dtest.src.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-25+10-1016/src.full/open/test/hotspot/jtreg/vmTestbase/jit/t/t105:/opt/mach5/mesos/work_dir/jib-master/install/jdk-25+10-1016/src.full/open/test/hotspot/jtreg/vmTestbase:/opt/mach5/mesos/work_dir/jib-master/install/jdk-25+10-1016/src.full/open/test/lib -Dtest.classes=/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S885/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b3208031-50bd-4058-9e50-6325669eb865/runs/ceb4ec08-09bd-4881-8886-c19670e8111a/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/classes/2/vmTestbase/jit/t/t105/t105.d -Dtest.class.path=/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S885/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b3208031-50bd-4058-9e50-6325669eb865/runs/ceb4ec08-09bd-4881-8886-c19670e8111a/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/classes/2/vmTestbase/jit/t/t105/t105.d:/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S885/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b3208031-50bd-4058-9e50-6325669eb865/runs/ceb4ec08-09bd-4881-8886-c19670e8111a/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/classes/2/vmTestbase:/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S885/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b3208031-50bd-4058-9e50-6325669eb865/runs/ceb4ec08-09bd-4881-8886-c19670e8111a/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/classes/2/test/lib -Dtest.class.path.prefix=/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S885/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b3208031-50bd-4058-9e50-6325669eb865/runs/ceb4ec08-09bd-4881-8886-c19670e8111a/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/classes/2/vmTestbase/jit/t/t105/t105.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-25+10-1016/src.full/open/test/hotspot/jtreg/vmTestbase/jit/t/t105:/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S885/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b3208031-50bd-4058-9e50-6325669eb865/runs/ceb4ec08-09bd-4881-8886-c19670e8111a/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/classes/2/vmTestbase:/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S885/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b3208031-50bd-4058-9e50-6325669eb865/runs/ceb4ec08-09bd-4881-8886-c19670e8111a/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/classes/2/test/lib -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/23/37/bundles/linux-aarch64/jdk-23_linux-aarch64_bin.tar.gz/jdk-23 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S885/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b3208031-50bd-4058-9e50-6325669eb865/runs/ceb4ec08-09bd-4881-8886-c19670e8111a/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/tmp -XX:+UnlockDiagnosticVMOptions -XX:-TieredCompilation -XX:+StressArrayCopyMacroNode -XX:+StressLCM -XX:+StressGCM -XX:+StressIGVN -XX:+StressCCP -XX:+StressMacroExpansion -XX:+StressMethodHandleLinkerInlining -XX:+StressCompiledExceptionHandlers -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-25+10-1016/linux-aarch64-debug.test/hotspot/jtreg/native -XX:-OmitStackTraceInFastThrow -Xbatch -XX:Tier0BackedgeNotifyFreqLog=0 -XX:Tier2BackedgeNotifyFreqLog=0 -XX:Tier3BackedgeNotifyFreqLog=0 -XX:Tier2BackEdgeThreshold=1 -XX:Tier3BackEdgeThreshold=1 -XX:Tier4BackEdgeThreshold=1 com.sun.javatest.regtest.agent.MainWrapper /opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S885/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b3208031-50bd-4058-9e50-6325669eb865/runs/ceb4ec08-09bd-4881-8886-c19670e8111a/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/vmTestbase/jit/t/t105/t105.d/main.1.jta This test must be run with OmitStackTraceInFastThrow disabled to avoid preallocated exceptions. They don't have the detailed message that this test relies on. Host: AArch64, 8 cores, 30G, Oracle Linux Server release 8.10 Time: Tue Feb 11 03:22:47 2025 UTC elapsed time: 17.568331 seconds (0d 0h 0m 17s) --------------- T H R E A D --------------- Current thread (0x0000ffff9c280d90): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=3214265, stack(0x0000ffff7e988000,0x0000ffff7eb86000) (2040K)] Current CompileTask: C2:17568 324 b sun.security.util.KnownOIDs::<clinit> (6247 bytes) Stack: [0x0000ffff7e988000,0x0000ffff7eb86000], sp=0x0000ffff7eb80530, free space=2017k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x16f3dd4] VMError::report(outputStream*, bool)+0x1f00 (compilationMemoryStatistic.cpp:567) V [libjvm.so+0x16f80ec] VMError::report_and_die(int, char const*, char const*, std::__va_list, Thread*, unsigned char*, void const*, void const*, char const*, int, unsigned long)+0x49c (vmError.cpp:1795) V [libjvm.so+0x9a386c] report_fatal(VMErrorType, char const*, int, char const*, ...)+0xf8 (debug.cpp:223) V [libjvm.so+0x8c9104] CompilationMemoryStatistic::on_arena_change(long, Arena const*)+0x374 (compilationMemoryStatistic.cpp:567) V [libjvm.so+0x5a1938] Arena::grow(unsigned long, AllocFailStrategy::AllocFailEnum)+0x108 (arena.cpp:306) V [libjvm.so+0x14591a4] PhaseChaitin::Split(unsigned int, ResourceArea*)+0x3a4 (resourceArea.inline.hpp:35) V [libjvm.so+0x7b9d44] PhaseChaitin::Register_Allocate()+0x444 (chaitin.cpp:567) V [libjvm.so+0x8ee4e0] Compile::Code_Gen()+0x3ac (compile.cpp:2970) V [libjvm.so+0x8f08f0] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x15ac (compile.cpp:881) V [libjvm.so+0x7446b0] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x17c (c2compiler.cpp:141) V [libjvm.so+0x8fd4e4] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x864 (compileBroker.cpp:2317) V [libjvm.so+0x8fe0fc] CompileBroker::compiler_thread_loop()+0x57c (compileBroker.cpp:1975) V [libjvm.so+0xd7adb4] JavaThread::thread_main_inner()+0xe4 (javaThread.cpp:776) V [libjvm.so+0x1625090] Thread::call_run()+0xac (thread.cpp:231) V [libjvm.so+0x1356c44] thread_native_entry(Thread*)+0x130 (os_linux.cpp:877) C [libpthread.so.0+0x7950] start_thread+0x190
11-02-2025

I disabled the MemLimit for i2c_c2i/Test.java with JDK-8349820. Once this bug is fixed, the MemLimit should be re-enabled again.
11-02-2025

Looks like a different issue. JDK-8333697 happened during PhaseCFG::global_code_motion. Maybe it's JDK-8331337? The vmTestbase/jit/t/t105/t105.java failures look unrelated too, they should never have been linked to JDK-8333697 either. I re-linked them to JDK-8337821.
11-02-2025

I can not reproduce this on my machine, even with the same seed (test is randomized). ILW = High compiler memory usage, intermittent with single test and stress flags, increase memory limit = MML = P4
11-02-2025