author | naoto |
Tue, 09 Jul 2019 08:05:38 -0700 | |
changeset 55627 | 9c1885fb2a42 |
parent 55239 | 74832e7b5cad |
child 58579 | 05dd6144d434 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
49653
diff
changeset
|
2 |
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. |
1 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
5403
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
5403
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
5403
diff
changeset
|
21 |
* questions. |
1 | 22 |
* |
23 |
*/ |
|
24 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
49653
diff
changeset
|
25 |
#ifndef SHARE_UTILITIES_VMERROR_HPP |
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
49653
diff
changeset
|
26 |
#define SHARE_UTILITIES_VMERROR_HPP |
7397 | 27 |
|
28 |
#include "utilities/globalDefinitions.hpp" |
|
29 |
||
11761 | 30 |
class Decoder; |
46560
388aa8d67c80
8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
46284
diff
changeset
|
31 |
class frame; |
1 | 32 |
class VM_ReportJavaOutOfMemory; |
33 |
||
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
34 |
class VMError : public AllStatic { |
1 | 35 |
friend class VM_ReportJavaOutOfMemory; |
11761 | 36 |
friend class Decoder; |
38266
aa3dbc37ede9
8156133: FindCrashesAction in HSDB does not work except Solaris platform
ysuenaga
parents:
35176
diff
changeset
|
37 |
friend class VMStructs; |
1 | 38 |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
39 |
static int _id; // Solaris/Linux signals: 0 - SIGRTMAX |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
40 |
// Windows exceptions: 0xCxxxxxxx system errors |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
41 |
// 0x8xxxxxxx system warnings |
1 | 42 |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
43 |
static const char* _message; |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
44 |
static char _detail_msg[1024]; |
1 | 45 |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
46 |
static Thread* _thread; // NULL if it's native thread |
1 | 47 |
|
48 |
// additional info for crashes |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
49 |
static address _pc; // faulting PC |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
50 |
static void* _siginfo; // ExceptionRecord on Windows, |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
51 |
// siginfo_t on Solaris/Linux |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
52 |
static void* _context; // ContextRecord on Windows, |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
53 |
// ucontext_t on Solaris/Linux |
1 | 54 |
|
55 |
// additional info for VM internal errors |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
56 |
static const char* _filename; |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
57 |
static int _lineno; |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
58 |
|
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
59 |
// used by reporting about OOM |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
60 |
static size_t _size; |
1 | 61 |
|
62 |
// used by fatal error handler |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
63 |
static int _current_step; |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
64 |
static const char* _current_step_info; |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
65 |
|
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
66 |
// Thread id of the first error. We must be able to handle native thread, |
6176
4d9030fe341f
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
5547
diff
changeset
|
67 |
// so use thread id instead of Thread* to identify thread. |
33131
a8ad9de9e5a4
8138832: CreateCoredumpOnCrash on linux ARM causes assert message to be repeated.
david
parents:
33105
diff
changeset
|
68 |
static volatile intptr_t first_error_tid; |
1 | 69 |
|
8119
81eef1b06988
7014918: Improve core/minidump handling in Hotspot
ctornqvi
parents:
7719
diff
changeset
|
70 |
// Core dump status, false if we have been unable to write a core/minidump for some reason |
81eef1b06988
7014918: Improve core/minidump handling in Hotspot
ctornqvi
parents:
7719
diff
changeset
|
71 |
static bool coredump_status; |
81eef1b06988
7014918: Improve core/minidump handling in Hotspot
ctornqvi
parents:
7719
diff
changeset
|
72 |
|
81eef1b06988
7014918: Improve core/minidump handling in Hotspot
ctornqvi
parents:
7719
diff
changeset
|
73 |
// When coredump_status is set to true this will contain the name/path to the core/minidump, |
81eef1b06988
7014918: Improve core/minidump handling in Hotspot
ctornqvi
parents:
7719
diff
changeset
|
74 |
// if coredump_status if false, this will (hopefully) contain a useful error explaining why |
81eef1b06988
7014918: Improve core/minidump handling in Hotspot
ctornqvi
parents:
7719
diff
changeset
|
75 |
// no core/minidump has been written to disk |
81eef1b06988
7014918: Improve core/minidump handling in Hotspot
ctornqvi
parents:
7719
diff
changeset
|
76 |
static char coredump_message[O_BUFLEN]; |
81eef1b06988
7014918: Improve core/minidump handling in Hotspot
ctornqvi
parents:
7719
diff
changeset
|
77 |
|
46284
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
78 |
// Timeout handling: |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
79 |
// Timestamp at which error reporting started; -1 if no error reporting in progress. |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
80 |
static volatile jlong _reporting_start_time; |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
81 |
// Whether or not error reporting did timeout. |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
82 |
static volatile bool _reporting_did_timeout; |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
83 |
// Timestamp at which the last error reporting step started; -1 if no error reporting |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
84 |
// in progress. |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
85 |
static volatile jlong _step_start_time; |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
86 |
// Whether or not the last error reporting step did timeout. |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
87 |
static volatile bool _step_did_timeout; |
1 | 88 |
|
46589 | 89 |
static bool _error_reported; |
90 |
||
91 |
public: |
|
92 |
||
1 | 93 |
// set signal handlers on Solaris/Linux or the default exception filter |
94 |
// on Windows, to handle recursive crashes. |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
95 |
static void reset_signal_handlers(); |
1 | 96 |
|
97 |
// handle -XX:+ShowMessageBoxOnError. buf is used to format the message string |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
98 |
static void show_message_box(char* buf, int buflen); |
1 | 99 |
|
100 |
// generate an error report |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
101 |
static void report(outputStream* st, bool verbose); |
1 | 102 |
|
5340 | 103 |
// generate a stack trace |
104 |
static void print_stack_trace(outputStream* st, JavaThread* jt, |
|
105 |
char* buf, int buflen, bool verbose = false); |
|
106 |
||
46560
388aa8d67c80
8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
46284
diff
changeset
|
107 |
// public for use by the internal non-product debugger. |
388aa8d67c80
8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
46284
diff
changeset
|
108 |
NOT_PRODUCT(public:) |
388aa8d67c80
8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
46284
diff
changeset
|
109 |
static void print_native_stack(outputStream* st, frame fr, Thread* t, |
388aa8d67c80
8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
46284
diff
changeset
|
110 |
char* buf, int buf_size); |
388aa8d67c80
8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
46284
diff
changeset
|
111 |
NOT_PRODUCT(private:) |
388aa8d67c80
8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
46284
diff
changeset
|
112 |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
113 |
static bool should_report_bug(unsigned int id) { |
17087
f0b76c4c93a0
8011661: Insufficient memory message says "malloc" when sometimes it should say "mmap"
ccheung
parents:
13963
diff
changeset
|
114 |
return (id != OOM_MALLOC_ERROR) && (id != OOM_MMAP_ERROR); |
f0b76c4c93a0
8011661: Insufficient memory message says "malloc" when sometimes it should say "mmap"
ccheung
parents:
13963
diff
changeset
|
115 |
} |
1 | 116 |
|
35176
11a9d4022d9e
8144219: [posix] Remove redundant code around os::print_siginfo()
stuefe
parents:
34139
diff
changeset
|
117 |
// Write a hint to the stream in case siginfo relates to a segv/bus error |
11a9d4022d9e
8144219: [posix] Remove redundant code around os::print_siginfo()
stuefe
parents:
34139
diff
changeset
|
118 |
// and the offending address points into CDS store. |
11a9d4022d9e
8144219: [posix] Remove redundant code around os::print_siginfo()
stuefe
parents:
34139
diff
changeset
|
119 |
static void check_failing_cds_access(outputStream* st, const void* siginfo); |
11a9d4022d9e
8144219: [posix] Remove redundant code around os::print_siginfo()
stuefe
parents:
34139
diff
changeset
|
120 |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
121 |
static void report_and_die(Thread* thread, unsigned int sig, address pc, void* siginfo, |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
122 |
void* context, const char* detail_fmt, ...) ATTRIBUTE_PRINTF(6, 7); |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
123 |
static void report_and_die(const char* message, const char* detail_fmt, ...) ATTRIBUTE_PRINTF(2, 3); |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
124 |
|
46284
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
125 |
// Timeout handling. |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
126 |
// Hook functions for platform dependend functionality: |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
127 |
static void reporting_started(); |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
128 |
static void interrupt_reporting_thread(); |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
129 |
|
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
130 |
// Helper function to get the current timestamp. |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
131 |
static jlong get_current_timestamp(); |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
132 |
|
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
133 |
// Accessors to get/set the start times for step and total timeout. |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
134 |
static void record_reporting_start_time(); |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
135 |
static jlong get_reporting_start_time(); |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
136 |
static void record_step_start_time(); |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
137 |
static jlong get_step_start_time(); |
55239
74832e7b5cad
8188872: runtime/ErrorHandling/TimeoutInErrorHandlingTest.java fails intermittently
dcubed
parents:
53599
diff
changeset
|
138 |
static void clear_step_start_time(); |
46284
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
139 |
|
1 | 140 |
public: |
17087
f0b76c4c93a0
8011661: Insufficient memory message says "malloc" when sometimes it should say "mmap"
ccheung
parents:
13963
diff
changeset
|
141 |
|
1 | 142 |
// return a string to describe the error |
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
143 |
static char* error_string(char* buf, int buflen); |
1 | 144 |
|
30240
a7ba42fa1df6
8074354: Make CreateMinidumpOnCrash a new name and available on all platforms
minqi
parents:
19952
diff
changeset
|
145 |
// Record status of core/minidump |
a7ba42fa1df6
8074354: Make CreateMinidumpOnCrash a new name and available on all platforms
minqi
parents:
19952
diff
changeset
|
146 |
static void record_coredump_status(const char* message, bool status); |
8119
81eef1b06988
7014918: Improve core/minidump handling in Hotspot
ctornqvi
parents:
7719
diff
changeset
|
147 |
|
34139
0728fe06ccf8
8027429: Add diagnostic command VM.info to get hs_err print-out
coleenp
parents:
33131
diff
changeset
|
148 |
// support for VM.info diagnostic command |
0728fe06ccf8
8027429: Add diagnostic command VM.info to get hs_err print-out
coleenp
parents:
33131
diff
changeset
|
149 |
static void print_vm_info(outputStream* st); |
0728fe06ccf8
8027429: Add diagnostic command VM.info to get hs_err print-out
coleenp
parents:
33131
diff
changeset
|
150 |
|
1 | 151 |
// main error reporting function |
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
152 |
static void report_and_die(int id, const char* message, const char* detail_fmt, va_list detail_args, |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
153 |
Thread* thread, address pc, void* siginfo, void* context, |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
154 |
const char* filename, int lineno, size_t size) ATTRIBUTE_PRINTF(3, 0); |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
155 |
|
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
156 |
static void report_and_die(Thread* thread, unsigned int sig, address pc, |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
157 |
void* siginfo, void* context); |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
158 |
|
49653
a569cb4425f3
8191101: Show register content in hs-err file on assert
stuefe
parents:
47216
diff
changeset
|
159 |
static void report_and_die(Thread* thread, void* context, const char* filename, int lineno, const char* message, |
a569cb4425f3
8191101: Show register content in hs-err file on assert
stuefe
parents:
47216
diff
changeset
|
160 |
const char* detail_fmt, va_list detail_args) ATTRIBUTE_PRINTF(6, 0); |
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
161 |
|
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
162 |
static void report_and_die(Thread* thread, const char* filename, int lineno, size_t size, |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
163 |
VMErrorType vm_err_type, const char* detail_fmt, |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
164 |
va_list detail_args) ATTRIBUTE_PRINTF(6, 0); |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
165 |
|
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
166 |
static void report_and_die(const char* message); |
1 | 167 |
|
168 |
// reporting OutOfMemoryError |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
169 |
static void report_java_out_of_memory(const char* message); |
1 | 170 |
|
171 |
// returns original flags for signal, if it was resetted, or -1 if |
|
172 |
// signal was not changed by error reporter |
|
173 |
static int get_resetted_sigflags(int sig); |
|
174 |
||
175 |
// returns original handler for signal, if it was resetted, or NULL if |
|
176 |
// signal was not changed by error reporter |
|
177 |
static address get_resetted_sighandler(int sig); |
|
6176
4d9030fe341f
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
5547
diff
changeset
|
178 |
|
4d9030fe341f
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
5547
diff
changeset
|
179 |
// check to see if fatal error reporting is in progress |
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
31963
diff
changeset
|
180 |
static bool fatal_error_in_progress() { return first_error_tid != -1; } |
19952
bc974e92f881
8022335: Native stack walk while generating hs_err does not work on Windows x64
iklam
parents:
18487
diff
changeset
|
181 |
|
33131
a8ad9de9e5a4
8138832: CreateCoredumpOnCrash on linux ARM causes assert message to be repeated.
david
parents:
33105
diff
changeset
|
182 |
static intptr_t get_first_error_tid() { return first_error_tid; } |
46284
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
183 |
|
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
184 |
// Called by the WatcherThread to check if error reporting has timed-out. |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
185 |
// Returns true if error reporting has not completed within the ErrorLogTimeout limit. |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
186 |
static bool check_timeout(); |
ad578adff5df
8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents:
38266
diff
changeset
|
187 |
|
46589 | 188 |
// Support for avoiding multiple asserts |
189 |
static bool is_error_reported(); |
|
7397 | 190 |
|
46589 | 191 |
// Test vmassert(), fatal(), guarantee(), etc. |
192 |
NOT_PRODUCT(static void test_error_handler();) |
|
193 |
NOT_PRODUCT(static void controlled_crash(int how);) |
|
194 |
||
195 |
// returns an address which is guaranteed to generate a SIGSEGV on read, |
|
196 |
// for test purposes, which is not NULL and contains bits in every word |
|
197 |
static void* get_segfault_address(); |
|
198 |
}; |
|
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
49653
diff
changeset
|
199 |
#endif // SHARE_UTILITIES_VMERROR_HPP |