"must set_type before use" bug in mulnode.cpp

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 5.0u9
    • Component/s: hotspot
    • None
    • generic
    • generic

      There is a bug in mulnode.cpp. need set_type before use in mulnode.cpp.

      ========= hotspot/src/share/vm/opto/mulnode.cpp#3 (text) ====
      @@ -100,6 +100,7 @@
               // Convert (X+con1)*con0 into X*con0
                 Node *mul = clone(); // mul = ()*con0
                 mul->set_req(1,add1->in(1)); // mul = X*con0
      + phase->set_type(mul,bottom_type());
                 mul = phase->transform(mul);
                 Node *add2 = add1->clone();

            Assignee:
            Unassigned
            Reporter:
            Marvin Ma (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: