Mercurial > hg > truffle
comparison src/share/vm/utilities/vmError.hpp @ 2095:36c186bcc085
6302804: Hotspot VM dies ungraceful death when C heap is exhausted in various places.
Summary: enhance the error reporting mechanism to help user to fix the problem rather than making it look like a VM error.
Reviewed-by: kvn, kamg
author | coleenp |
---|---|
date | Mon, 03 Jan 2011 14:09:11 -0500 |
parents | f95d63e2154a |
children | 63d374c54045 |
comparison
equal
deleted
inserted
replaced
2075:06e4b9c9db76 | 2095:36c186bcc085 |
---|---|
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 |