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

G1BarrierSetC2::step_over_gc_barrier fails with assert "bad barrier shape"

    XMLWordPrintable

Details

    • b14

    Backports

      Description

        Running applications/ctw/modules/java_desktop_2.java with -XX:-ReduceInitialCardMarks -XX:-ReduceBulkZeroing -XX:-ReduceFieldZeroing triggers the following error:

        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (t:\workspace\open\src\hotspot\share\gc\g1\c2\g1BarrierSetC2.cpp:771), pid=71860, tid=5508
        # assert(call->in(0) == 0LL || call->in(0)->in(0) == 0LL || call->in(0)->in(0)->in(0) == 0LL || call->in(0)->in(0)->in(0)->in(0) == 0LL || call->in(0)->in(0)->in(0)->in(0)->in(0) == 0LL || c == call->in(0)->in(0)->in(0)->in(0)->in(0)) failed: bad barrier shape

        Current CompileTask:
        C2: 193313 53064 b 4 javax.swing.tree.DefaultTreeSelectionModel::clone (105 bytes)

        Stack: [0x0000009256800000,0x0000009256900000]
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [jvm.dll+0xab2fb1] os::platform_print_native_stack+0xf1 (os_windows_x86.cpp:235)
        V [jvm.dll+0xcd25f7] VMError::report+0xfc7 (vmError.cpp:736)
        V [jvm.dll+0xcd3f4e] VMError::report_and_die+0x7ce (vmError.cpp:1533)
        V [jvm.dll+0xcd4664] VMError::report_and_die+0x64 (vmError.cpp:1327)
        V [jvm.dll+0x4bab87] report_vm_error+0xb7 (debug.cpp:284)
        V [jvm.dll+0x57a98f] G1BarrierSetC2::step_over_gc_barrier+0xa0f (g1BarrierSetC2.cpp:766)
        V [jvm.dll+0x22c678] ArrayCopyNode::may_modify+0xa8 (arraycopynode.cpp:665)
        V [jvm.dll+0xa15c5c] MemNode::optimize_memory_chain+0x32c (memnode.cpp:209)
        V [jvm.dll+0x3c7d96] PhiNode::Ideal+0x2cc6 (cfgnode.cpp:2318)
        V [jvm.dll+0xaf5abf] PhaseIterGVN::transform_old+0xcf (phaseX.cpp:1234)
        V [jvm.dll+0xaf30c2] PhaseIterGVN::optimize+0x2d2 (phaseX.cpp:1181)
        V [jvm.dll+0x472fc2] Compile::Optimize+0x9e2 (compile.cpp:2234)
        V [jvm.dll+0x470591] Compile::Compile+0x1421 (compile.cpp:787)
        V [jvm.dll+0x3a5c8c] C2Compiler::compile_method+0x10c (c2compiler.cpp:106)
        V [jvm.dll+0x48910e] CompileBroker::invoke_compiler_on_method+0x94e (compileBroker.cpp:2306)
        V [jvm.dll+0x48680a] CompileBroker::compiler_thread_loop+0x2ba (compileBroker.cpp:1980)
        V [jvm.dll+0xc635e6] JavaThread::thread_main_inner+0x226 (thread.cpp:1498)
        V [jvm.dll+0xc59e44] Thread::call_run+0x1b4 (thread.cpp:407)
        V [jvm.dll+0xab18fe] thread_native_entry+0x10e (os_windows.cpp:560)
        C [ucrtbase.dll+0x1fb80]
        C [KERNEL32.DLL+0x84d4]
        C [ntdll.dll+0x51791]

        Attachments

          Issue Links

            Activity

              People

                neliasso Nils Eliasson (Inactive)
                thartmann Tobias Hartmann
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: