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

Bad printf formatting in frame_zero.cpp

    Details

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

      Backports

        Description

        The HotSpot build fails on Zero builds due to a bad argument type using in a print_cr. This causes gcc to issue a warning, which is then turned into an error by the use of -Werror in the HotSpot build.

        This was fixed in OpenJDK 9 as an ancillary part of 8075967. We should backport this chunk to 8u so Zero builds can complete.

        @@ -213,7 +213,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);
           }
         }
         

          Issue Links

            Activity

            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/hotspot/rev/4a4a5b8b3dfe
            User: andrew
            Date: 2015-11-26 03:40:33 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/hotspot/rev/4a4a5b8b3dfe User: andrew Date: 2015-11-26 03:40:33 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/4a4a5b8b3dfe
            User: robm
            Date: 2015-11-27 17:33:26 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/4a4a5b8b3dfe User: robm Date: 2015-11-27 17:33:26 +0000

              People

              • Assignee:
                andrew Andrew Hughes
                Reporter:
                andrew Andrew Hughes
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: