%ld instead of %d for LogCompilation counts?

John Rose john.r.rose at oracle.com
Fri Dec 5 23:54:55 UTC 2014


On Dec 5, 2014, at 3:34 PM, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:
> 
> But I am fine to change log output to long by converting it to (jlong)cnt and using JLONG_FORMAT format.

A problem with converting to jlong is that we don't have a good notation for the format string of a jlong; it differs across platforms (%lld vs. %I64d).  If we want to avoid an exponent, %f should work better, because it doesn't require a possibly-lossy value conversion.

— John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20141205/56df83d0/attachment.html>


More information about the hotspot-compiler-dev mailing list