Mercurial > hg > graal-jvmci-8
comparison src/share/vm/utilities/debug.cpp @ 1870:c77b5c592eab
6392697: Additional flag needed to supress Hotspot warning messages
Summary: Apply PrintJvmWarnings flag to all warnings
Reviewed-by: coleenp, phh
author | kamg |
---|---|
date | Tue, 12 Oct 2010 10:57:33 -0400 |
parents | 30f67acf635d |
children | f95d63e2154a |
comparison
equal
deleted
inserted
replaced
1869:7491c8b96111 | 1870:c77b5c592eab |
---|---|
49 # endif | 49 # endif |
50 #endif // PRODUCT | 50 #endif // PRODUCT |
51 | 51 |
52 | 52 |
53 void warning(const char* format, ...) { | 53 void warning(const char* format, ...) { |
54 // In case error happens before init or during shutdown | 54 if (PrintWarnings) { |
55 if (tty == NULL) ostream_init(); | 55 // In case error happens before init or during shutdown |
56 | 56 if (tty == NULL) ostream_init(); |
57 tty->print("%s warning: ", VM_Version::vm_name()); | 57 |
58 va_list ap; | 58 tty->print("%s warning: ", VM_Version::vm_name()); |
59 va_start(ap, format); | 59 va_list ap; |
60 tty->vprint_cr(format, ap); | 60 va_start(ap, format); |
61 va_end(ap); | 61 tty->vprint_cr(format, ap); |
62 va_end(ap); | |
63 } | |
62 if (BreakAtWarning) BREAKPOINT; | 64 if (BreakAtWarning) BREAKPOINT; |
63 } | 65 } |
64 | 66 |
65 #ifndef PRODUCT | 67 #ifndef PRODUCT |
66 | 68 |