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

Missing C2 proper allocation failure handling during initialization (during generate_uncommon_trap_blob)

XMLWordPrintable

    • x86_64
    • linux

      From JDK-8347406 ([~kvn]): Crash during `generate_uncommon_trap_blob()` call when running StartupOutput.java:

      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff8abb3500d, pid=131416, tid=46000
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0) (fastdebug build 25-internal-LTS-2025-04-09-0101299.vladimir.kozlov.jdkgit)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-internal-LTS-2025-04-09-0101299.vladimir.kozlov.jdkgit, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
      # Problematic frame:
      # V [jvm.dll+0x35500d] Assembler::subq+0x5d

      Command Line: -XX:InitialCodeCacheSize=1189K -XX:ReservedCodeCacheSize=1223k

      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0x35500d] Assembler::subq+0x5d (assembler_x86.cpp:16896)
      V [jvm.dll+0xebe356] OptoRuntime::generate_uncommon_trap_blob+0xc6 (runtime_x86_64.cpp:76)
      V [jvm.dll+0xeb6f84] OptoRuntime::generate+0x14 (runtime.cpp:180)
      V [jvm.dll+0x4c3d96] C2Compiler::initialize+0x1a6 (c2compiler.cpp:111)
      V [jvm.dll+0x5dab46] CompileBroker::init_compiler_runtime+0xe6 (compileBroker.cpp:1762)
      V [jvm.dll+0x5d8f8a] CompileBroker::compiler_thread_loop+0x11a (compileBroker.cpp:1903)
      V [jvm.dll+0x932622] JavaThread::thread_main_inner+0x282 (javaThread.cpp:773)

      CodeCache: size=1280Kb used=1280Kb max_used=1280Kb free=0Kb
       bounds [0x000001db79ed0000, 0x000001db7a010000, 0x000001db7a010000]
       total_blobs=270, nmethods=5, adapters=199, full_count=1
      Compilation: disabled (not enough contiguous free space left), stopped_count=1, restarted_count=0

            dfenacci Damon Fenacci
            dfenacci Damon Fenacci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: