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

Fatal error on large SpecTrapLimitExtraEntries value

XMLWordPrintable

    • x86_64
    • linux_ubuntu

      ADDITIONAL SYSTEM INFORMATION :
      On Ubuntu 24.04.2 LTS and OpenJDK 11.0.28

      $ java -version
      openjdk version "11.0.28-internal" 2025-07-15
      OpenJDK Runtime Environment (build 11.0.28-internal+0-adhoc.***.hotspot11)
      OpenJDK 64-Bit Server VM (build 11.0.28-internal+0-adhoc.***.hotspot11, mixed mode)


      A DESCRIPTION OF THE PROBLEM :
      When running the jvm with the following arguments, it fails with a fatal error:

      java -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+AbortVMOnCompilationFailure -XX:SpecTrapLimitExtraEntries=1064443144

      The error in question is:

      fatal error: Not compilable at tier 3: mdo allocation failed


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run:

      java -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+AbortVMOnCompilationFailure -XX:SpecTrapLimitExtraEntries=1064443144


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Print help message and exit gracefully.

      ACTUAL -
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (compileBroker.cpp:2033), pid=1553807, tid=1553821
      # fatal error: Not compilable at tier 3: mdo allocation failed
      #
      # JRE version: OpenJDK Runtime Environment (11.0.28) (build 11.0.28-internal+0-adhoc.***.hotspot11)
      # Java VM: OpenJDK 64-Bit Server VM (11.0.28-internal+0-adhoc.***.hotspot11, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
      ...

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

      Command Line: -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+AbortVMOnCompilationFailure -XX:SpecTrapLimitExtraEntries=1064443144

      Host: AMD EPYC 7452 32-Core Processor, 64 cores, 251G, Ubuntu 24.04.2 LTS
      Time: Mon Jul 28 17:15:32 2025 EDT elapsed time: 0.096290 seconds (0d 0h 0m 0s)

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

      Current thread (0x00007f66ac512800): JavaThread "C1 CompilerThread0" daemon [_thread_in_native, id=1553821, stack(0x00007f663ab00000,0x00007f663ac00000)]


      Current CompileTask:
      C1: 96 1 3 java.util.concurrent.ConcurrentHashMap::tabAt (22 bytes)

      Stack: [0x00007f663ab00000,0x00007f663ac00000], sp=0x00007f663abfe4f0, free space=1017k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xe17f5a] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x1ca
      V [libjvm.so+0x6971b4] report_fatal(VMErrorType, char const*, int, char const*, ...)+0x104
      V [libjvm.so+0x641460] CompileBroker::post_compile(CompilerThread*, CompileTask*, bool, ciEnv*, int, char const*)+0x180
      V [libjvm.so+0x643de9] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x539
      V [libjvm.so+0x645078] CompileBroker::compiler_thread_loop()+0x428
      V [libjvm.so+0xdafe38] JavaThread::thread_main_inner()+0x208
      V [libjvm.so+0xdab630] Thread::call_run()+0x140
      V [libjvm.so+0xc16ece] thread_native_entry(Thread*)+0xee
      C [libc.so.6+0x9caa4]

            Unassigned Unassigned
            mcadizolivar Mario Cadiz Olivares
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: