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

C2: use_mem_state != load->find_exact_control(load->in(0)) assert failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • 24
    • 17, 21, 23, 24
    • hotspot

      Reproducible with attached test case:

      $ java -XX:-TieredCompilation -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -XX:+PrintCompilation -XX:CompileOnly=TestSunkLoadAntiDependency::test1 -XX:CompileCommand=quiet TestSunkLoadAntiDependency
      84 1 n jdk.internal.vm.Continuation::enterSpecial (native) (static)
      84 2 n jdk.internal.vm.Continuation::doYield (native) (static)
      116 3 b TestSunkLoadAntiDependency::test1 (89 bytes)
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/home/roland/jdk-jdk/src/hotspot/share/opto/gcm.cpp:894), pid=1173112, tid=1173126
      # assert(use_mem_state != load->find_exact_control(load->in(0))) failed: dependence cycle found
      #
      # JRE version: OpenJDK Runtime Environment (24.0) (fastdebug build 24-internal-adhoc.roland.jdk-jdk)
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 24-internal-adhoc.roland.jdk-jdk, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xe1a1d3] PhaseCFG::insert_anti_dependences(Block*, Node*, bool)+0x2903
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/roland/tmp/core.1173112)
      #
      # An error report file with more information is saved as:
      # /home/roland/tmp/hs_err_pid1173112.log
      #
      # Compiler replay data is saved as:
      # /home/roland/tmp/replay_pid1173112.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      Aborted (core dumped)

            roland Roland Westrelin
            roland Roland Westrelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: