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

Zero build is broken due to format specifier issue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • 8u40
    • hotspot
    • zero

      Andrew Hughes reports:

      I have a fix for 8u, but not
      sure how applicable it is for 9. I haven't had a chance to look at that yet.

      Actually, it's just this:

      diff -r 6533ac845e18 -r c75d6ce2e98b src/cpu/zero/vm/frame_zero.cpp
      --- a/src/cpu/zero/vm/frame_zero.cpp Mon Jun 30 14:58:52 2014 -0400
      +++ b/src/cpu/zero/vm/frame_zero.cpp Tue Aug 19 22:31:00 2014 +0100
      @@ -216,7 +216,7 @@
           valuebuf[buflen - 1] = '\0';
       
           // Print the result
      - st->print_cr(" " PTR_FORMAT ": %-21s = %s", addr, fieldbuf, valuebuf);
      + st->print_cr(" " PTR_FORMAT ": %-21s = %s", p2i(addr), fieldbuf, valuebuf);
         }
       }

      I'm guessing 8048169 covered the PPC port use of the interpreter, but this
      file is only built as part of Zero.

            andrew Andrew Hughes
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: