hotspot/src/share/vm/c1/c1_Runtime1.cpp
changeset 35477 7a00b08d27bc
parent 35216 71c463a17b3b
child 35495 e27da438fa13
equal deleted inserted replaced
35474:8333d76c7fee 35477:7a00b08d27bc
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 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.
   549 
   549 
   550     // debugging support
   550     // debugging support
   551     // tracing
   551     // tracing
   552     if (log_is_enabled(Info, exceptions)) {
   552     if (log_is_enabled(Info, exceptions)) {
   553       ResourceMark rm;
   553       ResourceMark rm;
   554       log_info(exceptions)("Exception <%s> (" INTPTR_FORMAT
   554       stringStream tempst;
   555                            ") thrown in compiled method <%s> at PC " INTPTR_FORMAT
   555       tempst.print("compiled method <%s>\n"
   556                            " for thread " INTPTR_FORMAT,
   556                    " at PC" INTPTR_FORMAT " for thread " INTPTR_FORMAT,
   557                            exception->print_value_string(),
   557                    nm->method()->print_value_string(), p2i(pc), p2i(thread));
   558                            p2i((address)exception()),
   558       Exceptions::log_exception(exception, tempst);
   559                            nm->method()->print_value_string(), p2i(pc), p2i(thread));
       
   560     }
   559     }
   561     // for AbortVMOnException flag
   560     // for AbortVMOnException flag
   562     Exceptions::debug_check_abort(exception);
   561     Exceptions::debug_check_abort(exception);
   563 
   562 
   564     // Clear out the exception oop and pc since looking up an
   563     // Clear out the exception oop and pc since looking up an