JDK-8313795 : Fix for JDK-8313564 breaks ppc and s390x builds
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2023-08-04
  • Updated: 2024-01-17
  • Resolved: 2023-08-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 22
22 b10Fixed
Related Reports
Relates :  
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
Comments
Nowhere to check, so I close this without a verification.
17-01-2024

Changeset: 6d185296 Author: Christoph Langer <clanger@openjdk.org> Date: 2023-08-04 22:33:36 +0000 URL: https://git.openjdk.org/jdk/commit/6d185296161606edbc9f737a6b1b27496add9367
04-08-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15165 Date: 2023-08-04 19:05:43 +0000
04-08-2023