< prev index next >

src/os/windows/vm/vmError_windows.cpp

Print this page
rev 8979 : [mq]: vmerr_static

*** 27,40 **** #include "runtime/os.hpp" #include "runtime/thread.hpp" #include "utilities/vmError.hpp" ! void VMError::show_message_box(char *buf, int buflen) { bool yes; do { ! error_string(buf, buflen); int len = (int)strlen(buf); char *p = &buf[len]; jio_snprintf(p, buflen - len, "\n\n" --- 27,41 ---- #include "runtime/os.hpp" #include "runtime/thread.hpp" #include "utilities/vmError.hpp" ! void VMError::show_message_box(char *buf, int buflen, int id, const char* message, const char* detail_fmt, ! va_list detail_args, address pc, const char* filename, int lineno) { bool yes; do { ! error_string(buf, buflen, id, message, detail_fmt, detail_args, pc, filename, lineno); int len = (int)strlen(buf); char *p = &buf[len]; jio_snprintf(p, buflen - len, "\n\n"
*** 68,80 **** return NULL; } LONG WINAPI crash_handler(struct _EXCEPTION_POINTERS* exceptionInfo) { DWORD exception_code = exceptionInfo->ExceptionRecord->ExceptionCode; ! VMError err(NULL, exception_code, NULL, exceptionInfo->ExceptionRecord, exceptionInfo->ContextRecord); - err.report_and_die(); return EXCEPTION_CONTINUE_SEARCH; } void VMError::reset_signal_handlers() { SetUnhandledExceptionFilter(crash_handler); --- 69,80 ---- return NULL; } LONG WINAPI crash_handler(struct _EXCEPTION_POINTERS* exceptionInfo) { DWORD exception_code = exceptionInfo->ExceptionRecord->ExceptionCode; ! VMError::report_and_die(NULL, exception_code, NULL, exceptionInfo->ExceptionRecord, exceptionInfo->ContextRecord); return EXCEPTION_CONTINUE_SEARCH; } void VMError::reset_signal_handlers() { SetUnhandledExceptionFilter(crash_handler);
< prev index next >