%ld instead of %d for LogCompilation counts?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-compiler-dev