mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
6392697
: Additional flag needed to supress Hotspot warning messages
Apply PrintJvmWarnings flag to all warnings Reviewed-by: coleenp, phh
This commit is contained in:
parent
a594a8dea5
commit
da95f5319e
2 changed files with 12 additions and 7 deletions
|
@ -51,14 +51,16 @@
|
|||
|
||||
|
||||
void warning(const char* format, ...) {
|
||||
// In case error happens before init or during shutdown
|
||||
if (tty == NULL) ostream_init();
|
||||
if (PrintWarnings) {
|
||||
// In case error happens before init or during shutdown
|
||||
if (tty == NULL) ostream_init();
|
||||
|
||||
tty->print("%s warning: ", VM_Version::vm_name());
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
tty->vprint_cr(format, ap);
|
||||
va_end(ap);
|
||||
tty->print("%s warning: ", VM_Version::vm_name());
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
tty->vprint_cr(format, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
if (BreakAtWarning) BREAKPOINT;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue