The gcc build has -Wformat enabled. This warns if the format string in a printf-like function is not a string literal, because if so it can not check that the types of the arguments match the format specifiers.
In a row of places this warning is suppressed by a PRAGMA.
This change fixes all but three occurrences of PRAGMA_FORMAT_NONLITERAL_IGNORED
This especially improves heapInspection.hpp where a static buffer is used to print the format string, which is not multithreading safe.
In a row of places this warning is suppressed by a PRAGMA.
This change fixes all but three occurrences of PRAGMA_FORMAT_NONLITERAL_IGNORED
This especially improves heapInspection.hpp where a static buffer is used to print the format string, which is not multithreading safe.
- duplicates
-
JDK-8043789 KlassInfoHisto::print_julong should print spaces instead of using str_fmt
-
- Closed
-