6392697: Additional flag needed to supress Hotspot warning messages

Apply PrintJvmWarnings flag to all warnings

Reviewed-by: coleenp, phh
This commit is contained in:
Keith McGuigan 2010-10-12 10:57:33 -04:00
parent a594a8dea5
commit da95f5319e
2 changed files with 12 additions and 7 deletions

View File

@ -815,6 +815,9 @@ class CommandLineFlags {
develop(bool, PrintJVMWarnings, false, \
"Prints warnings for unimplemented JVM functions") \
\
product(bool, PrintWarnings, true, \
"Prints JVM warnings to output stream") \
\
notproduct(uintx, WarnOnStalledSpinLock, 0, \
"Prints warnings for stalled SpinLocks") \
\

View File

@ -51,6 +51,7 @@
void warning(const char* format, ...) {
if (PrintWarnings) {
// In case error happens before init or during shutdown
if (tty == NULL) ostream_init();
@ -59,6 +60,7 @@ void warning(const char* format, ...) {
va_start(ap, format);
tty->vprint_cr(format, ap);
va_end(ap);
}
if (BreakAtWarning) BREAKPOINT;
}