244 // out of shared space reporting
245 enum SharedSpaceType {
246 SharedReadOnly,
247 SharedReadWrite,
248 SharedMiscData,
249 SharedMiscCode
250 };
251
252 void report_out_of_shared_space(SharedSpaceType space_type);
253
254 // out of memory reporting
255 void report_java_out_of_memory(const char* message);
256
257 // Support for self-destruct
258 bool is_error_reported();
259 void set_error_reported();
260
261 /* Test assert(), fatal(), guarantee(), etc. */
262 NOT_PRODUCT(void test_error_handler();)
263
264 void pd_ps(frame f);
265 void pd_obfuscate_location(char *buf, size_t buflen);
266
267 class outputStream;
268 void print_native_stack(outputStream* st, frame fr, Thread* t, char* buf, int buf_size);
269
270 #endif // SHARE_VM_UTILITIES_DEBUG_HPP
|
244 // out of shared space reporting
245 enum SharedSpaceType {
246 SharedReadOnly,
247 SharedReadWrite,
248 SharedMiscData,
249 SharedMiscCode
250 };
251
252 void report_out_of_shared_space(SharedSpaceType space_type);
253
254 // out of memory reporting
255 void report_java_out_of_memory(const char* message);
256
257 // Support for self-destruct
258 bool is_error_reported();
259 void set_error_reported();
260
261 /* Test assert(), fatal(), guarantee(), etc. */
262 NOT_PRODUCT(void test_error_handler();)
263
264 // crash in a controlled way:
265 // how can be one of:
266 // 1,2 - asserts
267 // 3,4 - guarantee
268 // 5-7 - fatal
269 // 8 - vm_exit_out_of_memory
270 // 9 - ShouldNotCallThis
271 // 10 - ShouldNotReachHere
272 // 11 - Unimplemented
273 // 12,13 - (not guaranteed) crashes
274 // 14 - SIGSEGV
275 // 15 - SIGILL
276 NOT_PRODUCT(void controlled_crash(int how);)
277
278 // returns an address which is guaranteed to generate a SIGSEGV on read,
279 // for test purposes, which is not NULL and contains bits in every word
280 NOT_PRODUCT(void* get_segfault_address();)
281
282
283 // a sequence of bytes which, when used as opcodes, will cause a SIGILL
284 NOT_PRODUCT(extern const uint8_t illegal_instruction_sequence[8]);
285
286 void pd_ps(frame f);
287 void pd_obfuscate_location(char *buf, size_t buflen);
288
289 class outputStream;
290 void print_native_stack(outputStream* st, frame fr, Thread* t, char* buf, int buf_size);
291
292 #endif // SHARE_VM_UTILITIES_DEBUG_HPP
|