[aarch64-port-dev ] Stop spurious O_BUFLEN warnings

Andrew Haley aph at redhat.com
Wed May 14 08:43:57 UTC 2014


Hi,

On 05/13/2014 03:16 PM, Edward Nevill wrote:

> The following patch stops spurious warning of the form
> 
> OpenJDK 64-Bit Server VM warning: increase O_BUFLEN in ostream.hpp -- output truncated
> 
> when invoke with -XX:+PrintFlagsFinal
> 
> These are generated by the following code in ostream.cpp
> 
>   } else if (vsnprintf(buffer, buflen, format, ap) >= 0) {
>     result = buffer;
>     result_len = strlen(result);
>   } else {
>     DEBUG_ONLY(warning("increase O_BUFLEN in ostream.hpp -- output truncated");)
>     result = buffer;
>     result_len = buflen - 1;
>     buffer[result_len] = 0;
>   }
> 
> 
> So, if vsnprintf returns negative it prints this error. This happens because it is passed a bad format string from globals.cpp.

This is shared code, nothing to do with AArch64 port.  It is not
an appropriate local change.  It might be suitable for jck8u.

Andrew.




More information about the aarch64-port-dev mailing list