hotspot/src/share/vm/utilities/vmError.hpp

Print this page




  53   int          _lineno;
  54 
  55   // used by fatal error handler
  56   int          _current_step;
  57   const char * _current_step_info;
  58   int          _verbose;
  59 
  60   // used by reporting about OOM
  61   size_t       _size;
  62 
  63   // set signal handlers on Solaris/Linux or the default exception filter
  64   // on Windows, to handle recursive crashes.
  65   void reset_signal_handlers();
  66 
  67   // handle -XX:+ShowMessageBoxOnError. buf is used to format the message string
  68   void show_message_box(char* buf, int buflen);
  69 
  70   // generate an error report
  71   void report(outputStream* st);
  72 




  73   // accessor
  74   const char* message()         { return _message; }
  75 
  76 public:
  77   // Constructor for crashes
  78   VMError(Thread* thread, int sig, address pc, void* siginfo, void* context);
  79   // Constructor for VM internal errors
  80   VMError(Thread* thread, const char* message, const char* filename, int lineno);
  81 
  82   // Constructors for VM OOM errors
  83   VMError(Thread* thread, size_t size, const char* message, const char* filename, int lineno);
  84   // Constructor for non-fatal errors
  85   VMError(const char* message);
  86 
  87   // return a string to describe the error
  88   char *error_string(char* buf, int buflen);
  89 
  90   // main error reporting function
  91   void report_and_die();
  92 


  53   int          _lineno;
  54 
  55   // used by fatal error handler
  56   int          _current_step;
  57   const char * _current_step_info;
  58   int          _verbose;
  59 
  60   // used by reporting about OOM
  61   size_t       _size;
  62 
  63   // set signal handlers on Solaris/Linux or the default exception filter
  64   // on Windows, to handle recursive crashes.
  65   void reset_signal_handlers();
  66 
  67   // handle -XX:+ShowMessageBoxOnError. buf is used to format the message string
  68   void show_message_box(char* buf, int buflen);
  69 
  70   // generate an error report
  71   void report(outputStream* st);
  72 
  73   // generate a stack trace
  74   static void print_stack_trace(outputStream* st, JavaThread* jt,
  75                                 char* buf, int buflen, bool verbose = false);
  76 
  77   // accessor
  78   const char* message()         { return _message; }
  79 
  80 public:
  81   // Constructor for crashes
  82   VMError(Thread* thread, int sig, address pc, void* siginfo, void* context);
  83   // Constructor for VM internal errors
  84   VMError(Thread* thread, const char* message, const char* filename, int lineno);
  85 
  86   // Constructors for VM OOM errors
  87   VMError(Thread* thread, size_t size, const char* message, const char* filename, int lineno);
  88   // Constructor for non-fatal errors
  89   VMError(const char* message);
  90 
  91   // return a string to describe the error
  92   char *error_string(char* buf, int buflen);
  93 
  94   // main error reporting function
  95   void report_and_die();
  96