RFR: 8292981: Unify and restructure integer printing format specifiers [v2]

David Holmes dholmes at openjdk.org
Mon Aug 29 12:19:06 UTC 2022


On Mon, 29 Aug 2022 08:22:04 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> One motivation for using PTR_FORMAT instead of %p, is to get consistent output on all platforms. 

Yes that has always been the problem, but I wondered whether this issue was perhaps finally resolved. Based on your results we seem closer - they all have leading 0x - but they still differ in leading zeroes. I have a recollection now that someone tried using %p fairly recently (ie last 12-24 months) and also discovered this. Kind of sad that something so conceptually simple has proven to be so difficult to get right.

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

PR: https://git.openjdk.org/jdk/pull/10042


More information about the hotspot-dev mailing list