JDK-8361086 : JVMCIGlobals::check_jvmci_flags_are_consistent has incorrect format string
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 26
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2025-06-30
  • Updated: 2025-06-30
Related Reports
Blocks :  
Description
JVMCIGlobals::check_jvmci_flags_are_consistent uses jio_fprintf to print a warning message including the value of TieredStopAtLevel. The type of that option is intx, but "%d" is used to print it, which is incorrect for 64bit platforms.

Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/26051 Date: 2025-06-30 16:14:08 +0000
30-06-2025

This begs the question of why TieredStopAtLevel is of type intx rather than int, since it's value is restricted to the range [0-4]. For that matter, there are a lot of other options in compiler_globals.hpp that that seem to be inappropriately typed as intx.
30-06-2025