< prev index next >

src/share/vm/utilities/vmError.hpp

Print this page




  76     return (id != OOM_MALLOC_ERROR) && (id != OOM_MMAP_ERROR);
  77   }
  78 
  79   static void report_and_die(Thread* thread, unsigned int sig, address pc, void* siginfo,
  80                              void* context, const char* detail_fmt, ...) ATTRIBUTE_PRINTF(6, 7);
  81   static void report_and_die(const char* message, const char* detail_fmt, ...) ATTRIBUTE_PRINTF(2, 3);
  82 
  83   static fdStream out;
  84   static fdStream log; // error log used by VMError::report_and_die()
  85 
  86 public:
  87 
  88   // return a string to describe the error
  89   static char* error_string(char* buf, int buflen, int id, const char* message,
  90                             const char* detail_fmt, va_list detail_args, address pc,
  91                             const char* filename, int lineno) ATTRIBUTE_PRINTF(5, 0);
  92 
  93   // Record status of core/minidump
  94   static void record_coredump_status(const char* message, bool status);
  95 
  96   /**
  97    * main error reporting function
  98    *
  99    * int          id;         // Solaris/Linux signals: 0 - SIGRTMAX
 100    *                          // Windows exceptions: 0xCxxxxxxx system errors
 101    *                          //                     0x8xxxxxxx system warnings
 102    * const char*  message;
 103    * const char*  detail_fmt;
 104    * va_list      detail_args;
 105    * Thread*      thread;     // NULL if it's native thread
 106    *
 107    * additional info for crashes
 108    *
 109    * address      pc;         // faulting PC
 110    * void*        siginfo;    // ExceptionRecord on Windows,
 111    *                          // siginfo_t on Solaris/Linux
 112    * void*        context;    // ContextRecord on Windows,
 113    *                          // ucontext_t on Solaris/Linux
 114    *
 115    * additional info for VM internal errors
 116    *
 117    * const char*  filename;
 118    * int          lineno;
 119    *
 120    * used by reporting about OOM
 121    *
 122    * size_t       size;
 123    */
 124   static void report_and_die(int id, const char* message, const char* detail_fmt, va_list detail_args,
 125                              Thread* thread, address pc, void* siginfo, void* context,
 126                              const char* filename, int lineno, size_t size) ATTRIBUTE_PRINTF(3, 0);
 127 
 128   static void report_and_die(Thread* thread, unsigned int sig, address pc,
 129                              void* siginfo, void* context);
 130 
 131   static void report_and_die(Thread* thread,const char* filename, int lineno, const char* message,
 132                              const char* detail_fmt, va_list detail_args) ATTRIBUTE_PRINTF(5, 0);
 133 
 134   static void report_and_die(Thread* thread, const char* filename, int lineno, size_t size,
 135                              VMErrorType vm_err_type, const char* detail_fmt,
 136                              va_list detail_args) ATTRIBUTE_PRINTF(6, 0);
 137 
 138   static void report_and_die(const char* message);
 139 
 140   // reporting OutOfMemoryError
 141   static void report_java_out_of_memory(const char* message);
 142 
 143   // returns original flags for signal, if it was resetted, or -1 if


  76     return (id != OOM_MALLOC_ERROR) && (id != OOM_MMAP_ERROR);
  77   }
  78 
  79   static void report_and_die(Thread* thread, unsigned int sig, address pc, void* siginfo,
  80                              void* context, const char* detail_fmt, ...) ATTRIBUTE_PRINTF(6, 7);
  81   static void report_and_die(const char* message, const char* detail_fmt, ...) ATTRIBUTE_PRINTF(2, 3);
  82 
  83   static fdStream out;
  84   static fdStream log; // error log used by VMError::report_and_die()
  85 
  86 public:
  87 
  88   // return a string to describe the error
  89   static char* error_string(char* buf, int buflen, int id, const char* message,
  90                             const char* detail_fmt, va_list detail_args, address pc,
  91                             const char* filename, int lineno) ATTRIBUTE_PRINTF(5, 0);
  92 
  93   // Record status of core/minidump
  94   static void record_coredump_status(const char* message, bool status);
  95 
  96   // main error reporting function
  97   //
  98   // int          id;         // Solaris/Linux signals: 0 - SIGRTMAX
  99   //                          // Windows exceptions: 0xCxxxxxxx system errors
 100   //                          //                     0x8xxxxxxx system warnings
 101   // const char*  message;
 102   // const char*  detail_fmt; // Format string for the detailed message
 103   // va_list      detail_args;// Arguments for the detailed message
 104   // Thread*      thread;     // NULL if it's native thread
 105   //
 106   // additional info for crashes
 107   //
 108   // address      pc;         // faulting PC
 109   // void*        siginfo;    // ExceptionRecord on Windows,
 110   //                          // siginfo_t on Solaris/Linux
 111   // void*        context;    // ContextRecord on Windows,
 112   //                          // ucontext_t on Solaris/Linux
 113   //
 114   // additional info for VM internal errors
 115   //
 116   // const char*  filename;
 117   // int          lineno;
 118   //
 119   // additional info for OOM
 120   //
 121   // size_t       size;


 122   static void report_and_die(int id, const char* message, const char* detail_fmt, va_list detail_args,
 123                              Thread* thread, address pc, void* siginfo, void* context,
 124                              const char* filename, int lineno, size_t size) ATTRIBUTE_PRINTF(3, 0);
 125 
 126   static void report_and_die(Thread* thread, unsigned int sig, address pc,
 127                              void* siginfo, void* context);
 128 
 129   static void report_and_die(Thread* thread,const char* filename, int lineno, const char* message,
 130                              const char* detail_fmt, va_list detail_args) ATTRIBUTE_PRINTF(5, 0);
 131 
 132   static void report_and_die(Thread* thread, const char* filename, int lineno, size_t size,
 133                              VMErrorType vm_err_type, const char* detail_fmt,
 134                              va_list detail_args) ATTRIBUTE_PRINTF(6, 0);
 135 
 136   static void report_and_die(const char* message);
 137 
 138   // reporting OutOfMemoryError
 139   static void report_java_out_of_memory(const char* message);
 140 
 141   // returns original flags for signal, if it was resetted, or -1 if
< prev index next >