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

Bad printf formatting in frame_zero.cpp

XMLWordPrintable

    • b01
    • generic
    • generic

        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);
           }
         }
         

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

                Created:
                Updated:
                Resolved: