RFR: 8346990: Remove INTX_FORMAT and UINTX_FORMAT macros [v5]

Kim Barrett kbarrett at openjdk.org
Thu Jan 9 22:00:59 UTC 2025


On Thu, 9 Jan 2025 21:47:47 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:

>> Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Restore copyright and macro.
>
> src/hotspot/share/runtime/objectMonitor.cpp line 2500:
> 
>> 2498:   // The minimal things to print for markWord printing, more can be added for debugging and logging.
>> 2499:   st->print("{contentions=0x%08x,waiters=0x%08x"
>> 2500:             ",recursions=%zd,owner=" INT64_FORMAT "}",
> 
> Is `INT64_FORMAT` different from `INTX_FORMAT`?

Currently yes.  The type underlying [u]intx varies by platform, being a 32-bit type on 32-bit platforms and a
64-bit type on 64-bit platforms.  We've been trimming the set of supported 32-bit platforms though, so maybe
someday we won't need that distinction any more.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22916#discussion_r1909478987


More information about the serviceability-dev mailing list