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

[premain] AOT code generation should support UseCompactObjectHeaders

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-leyden
    • repo-leyden
    • hotspot

      Leyden testing shows VM runtime/cds/appcds/aotCode/ tests crash "product" run on all platforms when -XX:+UseCompactObjectHeaders is used :

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007f23e0269b6f, pid=3996409, tid=3996412
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0+1) (fastdebug build 25-leydenpremain+1-LTS-124)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-leydenpremain+1-LTS-124, mixed mode, sharing, tiered, compressed oops, compact obj headers, g1 gc, linux-amd64)
      # Problematic frame:
      # J 349 c2 java.lang.Object.<init>()V java.base@25-leydenpremain (1 bytes) @ 0x00007f23e0269b6f [0x00007f23e0269b20+0x000000000000004f]

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

      Command Line: -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/24/36/bundles/linux-x64/jdk-24_linux-x64_bin.tar.gz/jdk-24 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/d2398cde-9325-49c3-b030-8961a4f0a253-S124400/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/70d66118-09b6-4e27-a009-cdd286d92530/runs/e78eb8f8-fce6-417d-ac28-2b11ad909b51/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/tmp -XX:+UseCompactObjectHeaders -XX:+UnlockDiagnosticVMOptions -XX:-AOTAdapterCaching -XX:-AOTStubCaching -XX:+AOTCodeCaching -Xlog:aot+codecache+init=debug -Xlog:aot+codecache+exit=debug -XX:+UnlockDiagnosticVMOptions -XX:VerifyArchivedFields=2 -Xlog:arguments,aot,cds:file=AOTCodeFlags.production.2.log::filesize=0 -XX:AOTMode=on -XX:AOTCache=AOTCodeFlags.aot JavacBenchApp 10

      Host: ol9-x64-854184, Intel(R) Xeon(R) Platinum 8358 CPU @ 2.60GHz, 12 cores, 23G, Oracle Linux Server release 9.5
      Time: Sat May 31 03:56:51 2025 UTC elapsed time: 3.005574 seconds (0d 0h 0m 3s)

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

      Current thread (0x00007f23f002e6d0): JavaThread "main" [_thread_in_Java, id=3996412, stack(0x00007f23f47c9000,0x00007f23f48c9000) (1024K)]

      Stack: [0x00007f23f47c9000,0x00007f23f48c9000], sp=0x00007f23f48c5590, free space=1009k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      J 349 c2 java.lang.Object.<init>()V java.base@25-leydenpremain (1 bytes) @ 0x00007f23e0269b6f [0x00007f23e0269b20+0x000000000000004f]
      j java.lang.Thread.<init>(Ljava/lang/ThreadGroup;Ljava/lang/String;ILjava/lang/Runnable;J)V+1 java.base@25-leydenpremain
      j java.lang.Thread.<init>(Ljava/lang/ThreadGroup;Ljava/lang/String;)V+9 java.base@25-leydenpremain
      v ~StubRoutines::call_stub 0x00007f23dfca8001
      V [libjvm.so+0x10c8201] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x4e1 (javaCalls.cpp:415)
      V [libjvm.so+0x10c9bdf] JavaCalls::call_special(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x18f (javaCalls.cpp:323)
      V [libjvm.so+0x10cab52] JavaCalls::construct_new_instance(InstanceKlass*, Symbol*, Handle, Handle, JavaThread*)+0x1e2 (javaCalls.cpp:289)
      V [libjvm.so+0x1107255] JavaThread::create_system_thread_object(char const*, JavaThread*)+0xc5 (javaThread.cpp:2202)
      V [libjvm.so+0x179bbbc] NotificationThread::initialize()+0x3c (notificationThread.cpp:41)
      V [libjvm.so+0x16588fc] Management::initialize(JavaThread*)+0x1c (management.cpp:151)
      V [libjvm.so+0x1bb80fd] Threads::create_vm(JavaVMInitArgs*, bool*)+0xf1d (threads.cpp:920)
      V [libjvm.so+0x121fa94] JNI_CreateJavaVM+0x54 (jni.cpp:3587)
      C [libjli.so+0x3dff] JavaMain+0x8f (java.c:1510)
      C [libjli.so+0x8019] ThreadJavaMain+0x9 (java_md.c:646)

      siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00000000202e3814

      Compiled method (c2) 5880 349 AP 4 java.lang.Object::<init> (1 bytes)
       total in heap [0x00007f23e0269a08,0x00007f23e0269be0] = 472
       main code [0x00007f23e0269b20,0x00007f23e0269bc8] = 168
       stub code [0x00007f23e0269bc8,0x00007f23e0269be0] = 24
       mutable data [0x00007f237c00b3b0,0x00007f237c00b3d0] = 32
       relocation [0x00007f237c00b3b0,0x00007f237c00b3c8] = 24
       metadata [0x00007f237c00b3c8,0x00007f237c00b3d0] = 8
       immutable data [0x00007f23d40973e3,0x00007f23d409747b] = 152
       dependencies [0x00007f23d40973e3,0x00007f23d40973eb] = 8
       handler table [0x00007f23d40973eb,0x00007f23d4097403] = 24
       scopes pcs [0x00007f23d4097403,0x00007f23d4097463] = 96
       scopes data [0x00007f23d4097463,0x00007f23d409747b] = 24
       AOT Code Cache entry 0x00007f23d4e2908c [kind: 6, id: 0x7b962910, offset: 277744, size: 1144, comp_level: 4, comp_id: 1120, decompiled: 2, entrant, loaded, for_preload, ignore_decomp]

            kvn Vladimir Kozlov
            kvn Vladimir Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: