changeset 11187:e09c7128cc52

8156126: LogCompilation: Dump additional info about deoptimization events Summary: Added reason and pc information to deoptimization info. Reviewed-by: vlivanov
author jcm
date Fri, 06 May 2016 05:42:36 -0700
parents 5bd9548140be
children 2ec94e2b7659
files src/share/vm/runtime/deoptimization.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/deoptimization.cpp	Fri May 06 18:20:50 2016 +0300
+++ b/src/share/vm/runtime/deoptimization.cpp	Fri May 06 05:42:36 2016 -0700
@@ -1321,7 +1321,7 @@
     assert(cm != NULL, "only compiled methods can deopt");
 
     ttyLocker ttyl;
-    xtty->begin_head("deoptimized thread='" UINTX_FORMAT "'", (uintx)thread->osthread()->thread_id());
+    xtty->begin_head("deoptimized thread='" UINTX_FORMAT "' reason='%s' pc='" INTPTR_FORMAT "'",(uintx)thread->osthread()->thread_id(), trap_reason_name(reason), p2i(fr.pc()));
     cm->log_identity(xtty);
     xtty->end_head();
     for (ScopeDesc* sd = cm->scope_desc_at(fr.pc()); ; sd = sd->sender()) {