RFR: 8039244: Don't use UINT32_FORMAT and INT32_FORMAT when printing uints and ints in the GC code

Vladimir Kozlov vladimir.kozlov at oracle.com
Fri Apr 4 15:58:31 UTC 2014


Stefan,

Could you explain more why you do this? Bug report does not explain why you need this.
The main reason we use *_FORMAT macros is because different platforms behave differently when we use normal format's 
specifiers.

Thanks,
Vladimir

On 4/4/14 12:59 AM, Stefan Karlsson wrote:
> Please, review this patch to the GC code to change usages of UINT32_FORMAT and INT32_FORMAT to %u and %d when uints and
> ints are used.
>
> While doing this change I found, and changed, a couple of places where we used UINT32_FORMAT to print variables that
> were less than 4 bytes.
>
> webrev: http://cr.openjdk.java.net/~stefank/8039244/webrev.00/
> bug: https://bugs.openjdk.java.net/browse/JDK-8039244
>
> thanks,
> StefanK



More information about the hotspot-gc-dev mailing list