JDK-8361085 : MemoryReserver log_on_large_pages_failure has incorrect format usage
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-06-30
  • Updated: 2025-07-15
  • Resolved: 2025-07-02
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 26
26 b05Fixed
Related Reports
Blocks :  
Description
In log_on_large_pages_failure (a file-scoped function in memoryReserver.cpp) there is a use of jio_snprintf that prints a pointer. It uses PTR_FORMAT, which is correct. But it uses the pointer directly as the argument, rather than using the `p2i` helper function. It happens to accidentally work, but is warned about if gcc's printf checking is enabled for that call.

Comments
Changeset: 1703915d Branch: master Author: Kim Barrett <kbarrett@openjdk.org> Date: 2025-07-02 00:25:26 +0000 URL: https://git.openjdk.org/jdk/commit/1703915d3fe3608ca558671814f78d9dcf5886e6
02-07-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/26050 Date: 2025-06-30 16:11:47 +0000
30-06-2025