1.1 --- a/src/share/vm/utilities/vmError.hpp Tue Feb 08 22:27:57 2011 -0800 1.2 +++ b/src/share/vm/utilities/vmError.hpp Wed Feb 09 11:08:10 2011 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -67,6 +67,14 @@ 1.11 static VMError* volatile first_error; 1.12 static volatile jlong first_error_tid; 1.13 1.14 + // Core dump status, false if we have been unable to write a core/minidump for some reason 1.15 + static bool coredump_status; 1.16 + 1.17 + // When coredump_status is set to true this will contain the name/path to the core/minidump, 1.18 + // if coredump_status if false, this will (hopefully) contain a useful error explaining why 1.19 + // no core/minidump has been written to disk 1.20 + static char coredump_message[O_BUFLEN]; 1.21 + 1.22 // used by reporting about OOM 1.23 size_t _size; 1.24 1.25 @@ -106,6 +114,9 @@ 1.26 // return a string to describe the error 1.27 char *error_string(char* buf, int buflen); 1.28 1.29 + // Report status of core/minidump 1.30 + static void report_coredump_status(const char* message, bool status); 1.31 + 1.32 // main error reporting function 1.33 void report_and_die(); 1.34