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

[AArch64] C2 compilation fails with "Field too big for insn"

    XMLWordPrintable

Details

    • gc
    • b26
    • aarch64
    • linux
    • Verified

    Backports

      Description

        Test name(s): applications/runthese/RunThese8H.java
        Product(s) tested: JDK 21.0.2 b04 (issue seen in 21.0.1 also)
        OS/architecture: Linux-aarch64
        Reproducible: Highly Intermittent
        VM flag: -XX:+UseZGC -XX:+ZGenerational

        Excerpts from Log:

        # guarantee(chk == -1 || chk == 0) failed: Field too big for insn at 0x0000ffff8c4d0eb4
        #
        # JRE version: Java(TM) SE Runtime Environment (21.0.2+4) (fastdebug build 21.0.2+4-LTS-43)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 21.0.2+4-LTS-43, mixed mode, sharing, tiered, compressed class ptrs, z gc, linux-aarch64)
        # Problematic frame:
        # V [libjvm.so+0x11b56a8] Instruction_aarch64::spatch(unsigned char*, int, int, long) [clone .part.0]+0x38
        #


        Current thread (0x0000ffff9c2fb4f0): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=2550844, stack(0x0000fffb23c03000,0x0000fffb23e01000) (2040K)]


        Current CompileTask:
        C2:28479996 4899959 4 com.sun.tck.lib.tgf.TransformingIterator::shift (62 bytes)

        Stack: [0x0000fffb23c03000,0x0000fffb23e01000], sp=0x0000fffb23dfc6f0, free space=2021k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x11b56a8] Instruction_aarch64::spatch(unsigned char*, int, int, long) [clone .part.0]+0x38 (assembler_aarch64.hpp:231)
        V [libjvm.so+0x11b6cac] MacroAssembler::pd_patch_instruction_size(unsigned char*, unsigned char*)+0x46c (macroAssembler_aarch64.cpp:235)
        V [libjvm.so+0x5d8418] Label::patch_instructions(MacroAssembler*)+0xf8 (macroAssembler_aarch64.hpp:631)
        V [libjvm.so+0x17c7f10] ZLoadBarrierStubC2Aarch64::emit_code(MacroAssembler&)+0x9c (macroAssembler_aarch64.hpp:150)
        V [libjvm.so+0x17d01fc] ZBarrierSetC2::emit_stubs(CodeBuffer&) const+0xd8 (zBarrierSetC2.cpp:341)
        V [libjvm.so+0x1385cbc] PhaseOutput::fill_buffer(CodeBuffer*, unsigned int*)+0x1c0c (output.cpp:1755)
        V [libjvm.so+0x9083b8] Compile::Code_Gen()+0x3c8 (compile.cpp:2971)
        V [libjvm.so+0x90c870] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x15b0 (compile.cpp:875)
        V [libjvm.so+0x762a58] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x328 (c2compiler.cpp:118)
        V [libjvm.so+0x918904] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x974 (compileBroker.cpp:2265)
        V [libjvm.so+0x919424] CompileBroker::compiler_thread_loop()+0x590 (compileBroker.cpp:1944)
        V [libjvm.so+0xdabbf0] JavaThread::thread_main_inner()+0xd0 (javaThread.cpp:719)
        V [libjvm.so+0x16050a4] Thread::call_run()+0xb0 (thread.cpp:217)
        V [libjvm.so+0x1360718] thread_native_entry(Thread*)+0x138 (os_linux.cpp:783)
        C [libpthread.so.0+0x7928] start_thread+0x188

        Attachments

          Issue Links

            Activity

              People

                aboldtch Axel Boldt-Christmas
                rsunderbabu Ramkumar Sunderbabu
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: