hotspot/src/share/vm/utilities/exceptions.cpp
changeset 37190 09d719d466a6
parent 37110 0c468eab5c66
child 37242 91e5f98fff6f
equal deleted inserted replaced
37185:7fd17c40a180 37190:09d719d466a6
   506 // for logging exceptions
   506 // for logging exceptions
   507 void Exceptions::log_exception(Handle exception, stringStream tempst) {
   507 void Exceptions::log_exception(Handle exception, stringStream tempst) {
   508   ResourceMark rm;
   508   ResourceMark rm;
   509   Symbol* message = java_lang_Throwable::detail_message(exception());
   509   Symbol* message = java_lang_Throwable::detail_message(exception());
   510   if (message != NULL) {
   510   if (message != NULL) {
   511     log_info(exceptions)("Exception <%s: %s> (" INTPTR_FORMAT ")\n thrown in %s",
   511     log_info(exceptions)("Exception <%s: %s>\n thrown in %s",
   512                          exception->print_value_string(),
   512                          exception->print_value_string(),
   513                          message->as_C_string(), p2i(exception()), tempst.as_string());
   513                          message->as_C_string(),
       
   514                          tempst.as_string());
   514   } else {
   515   } else {
   515     log_info(exceptions)("Exception <%s> (" INTPTR_FORMAT ")\n thrown in %s",
   516     log_info(exceptions)("Exception <%s>\n thrown in %s",
   516                          exception->print_value_string(),
   517                          exception->print_value_string(),
   517                          p2i(exception()), tempst.as_string());
   518                          tempst.as_string());
   518   }
   519   }
   519 }
   520 }