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

Fix for JDK-8313564 breaks ppc and s390x builds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1
    • 22
    • None
    • hotspot
    • None
    • b10

    Description

      The fix for JDK-8313564 changed the type of ContendedPaddingWidth from intx to int. In platform specific code some format specifiers are incorrect now and break the build.

      For instance:
      * For target hotspot_variant-server_libjvm_objs_vm_version_ppc.o:
      /linuxppc64le/jdk-dev/src/hotspot/cpu/ppc/vm_version_ppc.cpp: In static member function 'static void VM_Version::print_features()':
      /linuxppc64le/jdk-dev/src/hotspot/cpu/ppc/vm_version_ppc.cpp:500:21: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Werror=format=]
        500 | tty->print_cr("ContendedPaddingWidth " INTX_FORMAT, ContendedPaddingWidth);
            | ~~~~~~~~~~~~~~~~~~~~~
            | |
            | int
      cc1plus: all warnings being treated as errors

      Attachments

        Issue Links

          Activity

            People

              clanger Christoph Langer
              clanger Christoph Langer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: