85 char* buf, int buflen, bool verbose = false); |
85 char* buf, int buflen, bool verbose = false); |
86 |
86 |
87 // accessor |
87 // accessor |
88 const char* message() const { return _message; } |
88 const char* message() const { return _message; } |
89 const char* detail_msg() const { return _detail_msg; } |
89 const char* detail_msg() const { return _detail_msg; } |
|
90 bool should_report_bug(unsigned int id) { return id != oom_error; } |
90 |
91 |
91 public: |
92 public: |
92 // Constructor for crashes |
93 // Constructor for crashes |
93 VMError(Thread* thread, int sig, address pc, void* siginfo, void* context); |
94 VMError(Thread* thread, unsigned int sig, address pc, void* siginfo, |
|
95 void* context); |
94 // Constructor for VM internal errors |
96 // Constructor for VM internal errors |
95 VMError(Thread* thread, const char* filename, int lineno, |
97 VMError(Thread* thread, const char* filename, int lineno, |
96 const char* message, const char * detail_msg); |
98 const char* message, const char * detail_msg); |
97 |
99 |
98 // Constructor for VM OOM errors |
100 // Constructor for VM OOM errors |