[jdk17u-dev] RFR: 8296812: sprintf is deprecated in Xcode 14

Elif Aslan duke at openjdk.org
Fri Oct 27 16:14:51 UTC 2023


This is not a clean backport and this pull request contains a backport of the closed bug [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) commit [f1522c648c2e](https://github.com/openjdk/jdk/commit/478ef389dc3767edfbe21d10a7f7f1522c648c2e).

The sprintf is deprecated in Xcode 14 and the use of it causing building failure. The build could pass if warnings are disabled for codes that use sprintf method. For the long run, the sprintf could be replaced with snprintf. This patch is trying to check if snprintf could be used.

-------------

Commit messages:
 - add CPU back
 - remove CPU_STXR_PREFETCH
 - 8296812: Backport of 478ef389dc3767edfbe21d10a7f7f1522c648c2e

Changes: https://git.openjdk.org/jdk17u-dev/pull/1930/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=1930&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8296812
  Stats: 145 lines in 25 files changed: 46 ins; 4 del; 95 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/1930.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/1930/head:pull/1930

PR: https://git.openjdk.org/jdk17u-dev/pull/1930


More information about the jdk-updates-dev mailing list