--- old/src/share/vm/utilities/debug.hpp 2015-02-03 17:19:42.787240000 +0100 +++ new/src/share/vm/utilities/debug.hpp 2015-02-03 17:19:42.615161000 +0100 @@ -248,6 +248,24 @@ /* Test vmassert(), fatal(), guarantee(), etc. */ NOT_PRODUCT(void test_error_handler();) +// crash in a controlled way: +// how can be one of: +// 1,2 - asserts +// 3,4 - guarantee +// 5-7 - fatal +// 8 - vm_exit_out_of_memory +// 9 - ShouldNotCallThis +// 10 - ShouldNotReachHere +// 11 - Unimplemented +// 12,13 - (not guaranteed) crashes +// 14 - SIGSEGV +// 15 - SIGFPE +NOT_PRODUCT(void controlled_crash(int how);) + +// returns an address which is guaranteed to generate a SIGSEGV on read, +// for test purposes, which is not NULL and contains bits in every word +NOT_PRODUCT(void* get_segfault_address();) + void pd_ps(frame f); void pd_obfuscate_location(char *buf, size_t buflen);