< prev index next >

src/share/vm/utilities/debug.hpp

Print this page
rev 7703 : 8065895 Synchronous signals during error reporting may terminate or hang VM process
Contributed-by: stuefe


 231   SharedReadOnly,
 232   SharedReadWrite,
 233   SharedMiscData,
 234   SharedMiscCode
 235 };
 236 
 237 void report_out_of_shared_space(SharedSpaceType space_type);
 238 
 239 void report_insufficient_metaspace(size_t required_size);
 240 
 241 // out of memory reporting
 242 void report_java_out_of_memory(const char* message);
 243 
 244 // Support for self-destruct
 245 bool is_error_reported();
 246 void set_error_reported();
 247 
 248 /* Test vmassert(), fatal(), guarantee(), etc. */
 249 NOT_PRODUCT(void test_error_handler();)
 250 


















 251 void pd_ps(frame f);
 252 void pd_obfuscate_location(char *buf, size_t buflen);
 253 
 254 class outputStream;
 255 void print_native_stack(outputStream* st, frame fr, Thread* t, char* buf, int buf_size);
 256 
 257 #endif // SHARE_VM_UTILITIES_DEBUG_HPP


 231   SharedReadOnly,
 232   SharedReadWrite,
 233   SharedMiscData,
 234   SharedMiscCode
 235 };
 236 
 237 void report_out_of_shared_space(SharedSpaceType space_type);
 238 
 239 void report_insufficient_metaspace(size_t required_size);
 240 
 241 // out of memory reporting
 242 void report_java_out_of_memory(const char* message);
 243 
 244 // Support for self-destruct
 245 bool is_error_reported();
 246 void set_error_reported();
 247 
 248 /* Test vmassert(), fatal(), guarantee(), etc. */
 249 NOT_PRODUCT(void test_error_handler();)
 250 
 251 // crash in a controlled way:
 252 // how can be one of:
 253 // 1,2 - asserts
 254 // 3,4 - guarantee
 255 // 5-7 - fatal
 256 // 8 - vm_exit_out_of_memory
 257 // 9 - ShouldNotCallThis
 258 // 10 - ShouldNotReachHere
 259 // 11 - Unimplemented
 260 // 12,13 - (not guaranteed) crashes
 261 // 14 - SIGSEGV
 262 // 15 - SIGILL 
 263 NOT_PRODUCT(void controlled_crash(int how);)
 264 
 265 // returns an address which is guaranteed to generate a SIGSEGV on read,
 266 // for test purposes, which is not NULL and contains bits in every word
 267 NOT_PRODUCT(void* get_segfault_address();)
 268 
 269 void pd_ps(frame f);
 270 void pd_obfuscate_location(char *buf, size_t buflen);
 271 
 272 class outputStream;
 273 void print_native_stack(outputStream* st, frame fr, Thread* t, char* buf, int buf_size);
 274 
 275 #endif // SHARE_VM_UTILITIES_DEBUG_HPP
< prev index next >