< prev index next >

src/share/vm/utilities/debug.cpp

Print this page




 166         look = foundp + 1;
 167       }
 168       if (!match)  continue;
 169     }
 170     // got a match!
 171     if (noisy) {
 172       fdStream out(defaultStream::output_fd());
 173       out.print_raw("[error suppressed at ");
 174       out.print_raw(base_name);
 175       char buf[16];
 176       jio_snprintf(buf, sizeof(buf), ":%d]", line_no);
 177       out.print_raw_cr(buf);
 178     } else {
 179       // update 1-element cache for fast silent matches
 180       last_file_name = file_name;
 181       last_line_no   = line_no;
 182     }
 183     return true;
 184   }
 185 
 186   if (!is_error_reported()) {
 187     // print a friendly hint:
 188     fdStream out(defaultStream::output_fd());
 189     out.print_raw_cr("# To suppress the following error report, specify this argument");
 190     out.print_raw   ("# after -XX: or in .hotspotrc:  SuppressErrorAt=");
 191     out.print_raw   (base_name);
 192     char buf[16];
 193     jio_snprintf(buf, sizeof(buf), ":%d", line_no);
 194     out.print_raw_cr(buf);
 195   }
 196   return false;
 197 }
 198 
 199 #undef is_token_break
 200 
 201 #else
 202 
 203 // Place-holder for non-existent suppression check:
 204 #define error_is_suppressed(file_name, line_no) (false)
 205 
 206 #endif // !PRODUCT




 166         look = foundp + 1;
 167       }
 168       if (!match)  continue;
 169     }
 170     // got a match!
 171     if (noisy) {
 172       fdStream out(defaultStream::output_fd());
 173       out.print_raw("[error suppressed at ");
 174       out.print_raw(base_name);
 175       char buf[16];
 176       jio_snprintf(buf, sizeof(buf), ":%d]", line_no);
 177       out.print_raw_cr(buf);
 178     } else {
 179       // update 1-element cache for fast silent matches
 180       last_file_name = file_name;
 181       last_line_no   = line_no;
 182     }
 183     return true;
 184   }
 185 
 186   if (!is_error_reported() && !SuppressFatalErrorMessage) {
 187     // print a friendly hint:
 188     fdStream out(defaultStream::output_fd());
 189     out.print_raw_cr("# To suppress the following error report, specify this argument");
 190     out.print_raw   ("# after -XX: or in .hotspotrc:  SuppressErrorAt=");
 191     out.print_raw   (base_name);
 192     char buf[16];
 193     jio_snprintf(buf, sizeof(buf), ":%d", line_no);
 194     out.print_raw_cr(buf);
 195   }
 196   return false;
 197 }
 198 
 199 #undef is_token_break
 200 
 201 #else
 202 
 203 // Place-holder for non-existent suppression check:
 204 #define error_is_suppressed(file_name, line_no) (false)
 205 
 206 #endif // !PRODUCT


< prev index next >