RFR: 8292981: Unify and restructure integer printing format specifiers [v2]
Stefan Karlsson
stefank at openjdk.org
Mon Aug 29 07:44:13 UTC 2022
On Mon, 29 Aug 2022 00:07:18 GMT, David Holmes <dholmes at openjdk.org> wrote:
> > The patch also removes PTR32_FORMAT and PTR64_FORMAT and replace them with the corresponding integer format specifiers.
>
> Why? If we are printing ptr values then PTR_FORMAT seems appropriate, even if they match an integer format. (And yes we have to cast the ptrs to int using p2i but that is just because of compiler limitations/issues ... which raises the recurring old question of "have we finally reached a point where we can use %p cross-platform?")
I think you misunderstood this. I didn't remove PTR_FORMAT. I removed PTR32_FORMAT and PTR64_FORMAT, which were used to print integers with the same format as PTR_FORMAT.
-------------
PR: https://git.openjdk.org/jdk/pull/10042
More information about the hotspot-dev
mailing list