src/share/vm/utilities/vmError.hpp

changeset 1845
f03d0a26bf83
parent 1819
c544d979f886
child 1907
c18cbe5936b8
     1.1 --- a/src/share/vm/utilities/vmError.hpp	Sun Oct 11 16:19:25 2009 -0700
     1.2 +++ b/src/share/vm/utilities/vmError.hpp	Thu Apr 22 13:23:15 2010 -0700
     1.3 @@ -37,6 +37,7 @@
     1.4                               //                     0x8xxxxxxx system warnings
     1.5  
     1.6    const char * _message;
     1.7 +  const char * _detail_msg;
     1.8  
     1.9    Thread *     _thread;      // NULL if it's native thread
    1.10  
    1.11 @@ -75,16 +76,19 @@
    1.12                                  char* buf, int buflen, bool verbose = false);
    1.13  
    1.14    // accessor
    1.15 -  const char* message()         { return _message; }
    1.16 +  const char* message() const    { return _message; }
    1.17 +  const char* detail_msg() const { return _detail_msg; }
    1.18  
    1.19  public:
    1.20    // Constructor for crashes
    1.21    VMError(Thread* thread, int sig, address pc, void* siginfo, void* context);
    1.22    // Constructor for VM internal errors
    1.23 -  VMError(Thread* thread, const char* message, const char* filename, int lineno);
    1.24 +  VMError(Thread* thread, const char* filename, int lineno,
    1.25 +          const char* message, const char * detail_msg);
    1.26  
    1.27 -  // Constructors for VM OOM errors
    1.28 -  VMError(Thread* thread, size_t size, const char* message, const char* filename, int lineno);
    1.29 +  // Constructor for VM OOM errors
    1.30 +  VMError(Thread* thread, const char* filename, int lineno, size_t size,
    1.31 +          const char* message);
    1.32    // Constructor for non-fatal errors
    1.33    VMError(const char* message);
    1.34  

mercurial