Trivial patch for G1PrintRegionLivenessInfo

Jon Masamitsu jon.masamitsu at oracle.com
Thu Jun 10 22:01:26 UTC 2010


Look for uses of SIZE_FORMAT in print()'s to see if
that's what you're looking for.

On 06/10/10 14:51, Peter Schuller wrote:
>> I'd like to suggest the attached patch, which generates, at the end of
>> the region liveness print-out, one line like:
>>     
>
> And %d is broken, sorry. I thought about this when I did it, but I
> assumed %zu was unacceptable for portability reasons due to the use of
> %d in the existing code. I failed to consider that it was actually
> okay for a single region but not the totals. (Something came up; no
> time to grep my way towards the preferred method to print a size_t in
> the code base...)
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/hotspot-gc-dev/attachments/20100610/80f82b09/attachment.htm>


More information about the hotspot-gc-dev mailing list