equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
500 message = java_lang_String::as_utf8_string(msg); |
500 message = java_lang_String::as_utf8_string(msg); |
501 } |
501 } |
502 } |
502 } |
503 debug_check_abort(exception()->klass()->external_name(), message); |
503 debug_check_abort(exception()->klass()->external_name(), message); |
504 } |
504 } |
|
505 |
|
506 // for logging exceptions |
|
507 void Exceptions::log_exception(Handle exception, stringStream tempst) { |
|
508 ResourceMark rm; |
|
509 Symbol* message = java_lang_Throwable::detail_message(exception()); |
|
510 if (message != NULL) { |
|
511 log_info(exceptions)("Exception <%s: %s> (" INTPTR_FORMAT ")\n thrown in %s", |
|
512 exception->print_value_string(), |
|
513 message->as_C_string(), p2i(exception()), tempst.as_string()); |
|
514 } else { |
|
515 log_info(exceptions)("Exception <%s> (" INTPTR_FORMAT ")\n thrown in %s", |
|
516 exception->print_value_string(), |
|
517 p2i(exception()), tempst.as_string()); |
|
518 } |
|
519 } |