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

CTW of compstudio.jar dies at 3407 with assertion at node.hpp, 270

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 1.4.0
    • 1.4.0
    • hotspot
    • beta2
    • x86
    • solaris
    • Verified

      Test : compstudio.jar
      Mode : -Xcomp
      Platform : Solx86

      Steps to reproduce
      1) cd /net/sqesvr.eng/export/vsn/GammaBase/Bugs/{Bugid}
      2) sh doit

      {OR}

      run the following command-line

      /net/sqesvr.eng/export/vsn/VM/merlin/weekahead/jdk/latest/solx86/bin/java_g -server -Xcomp -XX:-ShowMessageBoxOnError -Xverify:all -XX:+CompileTheWorld -XX:CompileTheWorldStartAt=3217 -XX:CompileTheWorldStopAt=3407 -Xbootclasspath/p:/net/sqesvr.eng/export/vsn/VM/testbase/CompileTheWorld/jars/a-d/compstudio.jar

      Output:
      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b60)
      Java HotSpot(TM) Server VM (build 20010411221312.azeem.merlin_beta-debug, compiled mode)
      VM option '-ShowMessageBoxOnError'
      VM option '+CompileTheWorld'
      VM option 'CompileTheWorldStartAt=3217'
      VM option 'CompileTheWorldStopAt=3407'
      CompileTheWorld : Compiling all classes in /net/sqesvr.eng/export/vsn/VM/testbase/testbase_vm/src/jit/compiletheworld/jars/a-d/compstudio.jar

      CompileTheWorld (3406) : ser/nexus/TargetElement
      CompileTheWorld (3407) : ser/nexus/Unit
      #
      # HotSpot Virtual Machine Error, assertion failure
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # assert(i < _cnt, "oob")
      #
      # Error ID: /net/jano.eng/export/disk05/hotspot/imgr/ws/20010411221312.azeem.merlin_beta/src/share/vm/opto/node.hpp, 270
      #
      # Problematic Thread: prio=5 tid=0x817a4a8 nid=0xc runnable
      #
      Dumping core....
      Abort - core dumped

      ******************************************************************
      The fix is to call set_prec from Node::replace_by as appropriate.

      ------- phaseX.cpp -------
      --- /tmp/sd4168 Tue Apr 17 20:35:20 2001
      +++ phaseX.cpp Tue Apr 17 20:34:43 2001
      @@ -1567,7 +1567,10 @@ void Node::replace_by(Node *new_node) {
           uint uses_found = 0;
           for (uint j = 0; j < use->len(); j++) {
             if (use->in(j) == this) {
      - use->set_req(j, new_node);
      + if (j < use->req())
      + use->set_req(j, new_node);
      + else
      + use->set_prec(j, new_node);
        uses_found++;
             }
           }

            jrose John Rose
            spothugasunw Satheesh Pothuganti (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: