Mercurial > hg > graal-compiler
diff src/share/vm/runtime/thread.cpp @ 6843:c3e799c37717
7177003: C1: LogCompilation support
Summary: add LogCompilation support in C1 - both client and tiered mode.
Reviewed-by: twisti, kvn
author | vlivanov |
---|---|
date | Fri, 05 Oct 2012 18:57:10 -0700 |
parents | c088e2e95e69 |
children | 5876f980ea19 |
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.cpp Fri Oct 05 13:37:08 2012 -0700 +++ b/src/share/vm/runtime/thread.cpp Fri Oct 05 18:57:10 2012 -0700 @@ -2583,6 +2583,12 @@ StackFrameStream fst(this, UseBiasedLocking); for(; !fst.is_done(); fst.next()) { if (fst.current()->should_be_deoptimized()) { + if (LogCompilation && xtty != NULL) { + nmethod* nm = fst.current()->cb()->as_nmethod_or_null(); + xtty->elem("deoptimized thread='" UINTX_FORMAT "' compile_id='%d'", + this->name(), nm != NULL ? nm->compile_id() : -1); + } + Deoptimization::deoptimize(this, *fst.current(), fst.register_map()); } }