equal
deleted
inserted
replaced
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 |