234 // a compile time exception when trying to use StaticAssert<false>. 235 #define STATIC_ASSERT(cond) \ 236 do { \ 237 StaticAssert<(cond)> DUMMY_STATIC_ASSERT; \ 238 (void)DUMMY_STATIC_ASSERT; /* ignore */ \ 239 } while (false) 240 #else 241 #define STATIC_ASSERT(cond) 242 #endif 243 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 | 234 // a compile time exception when trying to use StaticAssert<false>. 235 #define STATIC_ASSERT(cond) \ 236 do { \ 237 StaticAssert<(cond)> DUMMY_STATIC_ASSERT; \ 238 (void)DUMMY_STATIC_ASSERT; /* ignore */ \ 239 } while (false) 240 #else 241 #define STATIC_ASSERT(cond) 242 #endif 243 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 void report_insufficient_metaspace(uintx required_size); 255 256 // out of memory reporting 257 void report_java_out_of_memory(const char* message); 258 259 // Support for self-destruct 260 bool is_error_reported(); 261 void set_error_reported(); 262 263 /* Test assert(), fatal(), guarantee(), etc. */ 264 NOT_PRODUCT(void test_error_handler();) 265 266 void pd_ps(frame f); 267 void pd_obfuscate_location(char *buf, size_t buflen); 268 269 class outputStream; 270 void print_native_stack(outputStream* st, frame fr, Thread* t, char* buf, int buf_size); 271 272 #endif // SHARE_VM_UTILITIES_DEBUG_HPP |