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

Node estimate for loop unswitching is not correct: assert(delta <= 2 * required) failed: Bad node estimate

    Details

    • Subcomponent:
    • Introduced In Build:
      b20
    • Introduced In Version:
      13
    • Resolved In Build:
      b24

      Backports

        Description

        It seems the JDK-8223389 was not complete. There is at least one failure like this:

        $ jdk-jdk/build/linux-x86_64-server-fastdebug/images/jdk/bin/java -jar target/benchmarks.jar -foe true -f 1 -wi 5 -i 5 -t 1 -w 1s -r 1s --jvmArgs "-Xmx1g -Xms1g -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC" XmlTransform
        ...
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/home/shade/trunks/jdk-jdk/src/hotspot/share/opto/loopnode.hpp:1388), pid=27591, tid=27623
        # assert(delta <= 2 * required) failed: Bad node estimate (actual: 707, request: 335)
        #
        # JRE version: OpenJDK Runtime Environment (13.0) (fastdebug build 13-internal+0-adhoc.shade.jdk-jdk)
        # Java VM: OpenJDK 64-Bit Server VM (fastdebug 13-internal+0-adhoc.shade.jdk-jdk, mixed mode, sharing, tiered, compressed oops, shenandoah gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0x11af362] AutoNodeBudget::~AutoNodeBudget()+0x1e2
        #
        # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P" (or dumping to /home/shade/core.27591)
        #
        # An error report file with more information is saved as:
        # /home/shade/hs_err_pid27591.log
        #
        # Compiler replay data is saved as:
        # /home/shade/replay_pid27591.log
        #
        # If you would like to submit a bug report, please visit:
        # http://bugreport.java.com/bugreport/crash.jsp

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  phedlin Patric Hedlin
                  Reporter:
                  shade Aleksey Shipilev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: