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

-XX:-UseLoopSafepoints causes assert(v_false,"Parse::remove_useless_nodes missed this node")

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b26
    • CPU:
      generic
    • OS:
      generic

      Description

      -XX:-UseLoopSafepoints causes assert in C2 when compiling a method with a loop.
      It happens on several platform (I tested sparc and sol-x86).
      All releases have this problem (I tested 1.4.2, 1.5.0, 1.6.0).

      % cat test.java
      public class test {
        static int test(int l, int limit) {
          long j = 0;
          for (int i = 0; i < limit; i++) {
            j += l;
          }
          return (int)j;
        }

        public static void main(String[] args) {
          int i = test(5, 30000);
        }
      }

      % /java/re/jdk/1.6.0/latest/binaries/solaris-sparc/bin/java_g -server -XX:-UseLoopSafepoints test
      VM option '-UseLoopSafepoints'
      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=/phaseX.cpp:756]
      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # Internal Error (/BUILD_AREA/jdk6.0/hotspot/src/share/vm/opto/phaseX.cpp, 756 [ Patched ]), pid=12547, tid=9
      #
      # Java VM: Java HotSpot(TM) Server VM (1.6.0-ea-b24-debug mixed mode)
      #
      # Error: assert(v_false,"Parse::remove_useless_nodes missed this node")
      # An error report file with more information is saved as hs_err_pid12547.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #
      Current thread is 9
      Dumping core ...
      Abort
      % /java/re/jdk/1.5.0/latest/binaries/solaris-sparc/bin/java_g -server -XX:-UseLoopSafepoints test
      VM option '-UseLoopSafepoints'
      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=/phaseX.cpp:756]
      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # Internal Error (/BUILD_AREA/jdk1.5.0/hotspot/src/share/vm/opto/phaseX.cpp, 756 [ Patched ]), pid=12550, tid=9
      #
      # Java VM: Java HotSpot(TM) Server VM (1.5.0-b64-debug mixed mode)
      #
      # Error: assert(v_false,"Parse::remove_useless_nodes missed this node")
      # An error report file with more information is saved as hs_err_pid12550.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #
      Current thread is 9
      Dumping core ...
      Abort


      ###@###.### 2005-2-23 18:32:07 GMT

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rcastanedalo Roberto Castaneda Lozano
              Reporter:
              kvn Vladimir Kozlov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: