1.1 --- a/src/share/vm/utilities/debug.hpp Tue Apr 30 09:17:06 2013 -0400 1.2 +++ b/src/share/vm/utilities/debug.hpp Tue Apr 30 11:56:52 2013 -0700 1.3 @@ -174,9 +174,9 @@ 1.4 } while (0) 1.5 1.6 // out of memory 1.7 -#define vm_exit_out_of_memory(size, msg) \ 1.8 +#define vm_exit_out_of_memory(size, vm_err_type, msg) \ 1.9 do { \ 1.10 - report_vm_out_of_memory(__FILE__, __LINE__, size, msg); \ 1.11 + report_vm_out_of_memory(__FILE__, __LINE__, size, vm_err_type, msg); \ 1.12 BREAKPOINT; \ 1.13 } while (0) 1.14 1.15 @@ -204,12 +204,20 @@ 1.16 BREAKPOINT; \ 1.17 } while (0); 1.18 1.19 + 1.20 +// types of VM error - originally in vmError.hpp 1.21 +enum VMErrorType { 1.22 + INTERNAL_ERROR = 0xe0000000, 1.23 + OOM_MALLOC_ERROR = 0xe0000001, 1.24 + OOM_MMAP_ERROR = 0xe0000002 1.25 +}; 1.26 + 1.27 // error reporting helper functions 1.28 void report_vm_error(const char* file, int line, const char* error_msg, 1.29 const char* detail_msg = NULL); 1.30 void report_fatal(const char* file, int line, const char* message); 1.31 void report_vm_out_of_memory(const char* file, int line, size_t size, 1.32 - const char* message); 1.33 + VMErrorType vm_err_type, const char* message); 1.34 void report_should_not_call(const char* file, int line); 1.35 void report_should_not_reach_here(const char* file, int line); 1.36 void report_unimplemented(const char* file, int line);