Mercurial > hg > truffle
diff src/share/vm/opto/parse1.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 | f13867c41f73 |
children | beebba0acc11 |
line wrap: on
line diff
--- a/src/share/vm/opto/parse1.cpp Fri Oct 05 13:37:08 2012 -0700 +++ b/src/share/vm/opto/parse1.cpp Fri Oct 05 18:57:10 2012 -0700 @@ -1381,8 +1381,7 @@ // that occur during parsing of this BC. If there is no log // output until the next context string, this context string // will be silently ignored. - log->context()->reset(); - log->context()->print_cr("<bc code='%d' bci='%d'/>", (int)bc(), bci()); + log->set_context("bc code='%d' bci='%d'", (int)bc(), bci()); } if (block()->has_trap_at(bci())) { @@ -1411,7 +1410,8 @@ NOT_PRODUCT( parse_histogram()->record_change(); ); - if (log != NULL) log->context()->reset(); // done w/ this one + if (log != NULL) + log->clear_context(); // skip marker if nothing was printed // Fall into next bytecode. Each bytecode normally has 1 sequential // successor which is typically made ready by visiting this bytecode.