Mercurial > hg > truffle
changeset 13713:cffcb8e38c4c
Deoptimization: only process the pendign speculation for Graal-compiled methods
This avoid priting useless "No Speculation" messages for C1/C2 compiled methods
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Mon, 20 Jan 2014 19:48:53 +0100 |
parents | 190d29710e97 |
children | b270b954ba9a |
files | src/share/vm/runtime/deoptimization.cpp |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/runtime/deoptimization.cpp Mon Jan 20 18:25:17 2014 +0100 +++ b/src/share/vm/runtime/deoptimization.cpp Mon Jan 20 19:48:53 2014 +0100 @@ -1370,6 +1370,7 @@ int trap_bci = trap_scope->bci(); #ifdef GRAAL oop speculation = thread->pending_failed_speculation(); + if (nm->is_compiled_by_graal()) { if (speculation != NULL) { oop speculation_log = nm->speculation_log(); if (speculation_log != NULL) { @@ -1393,6 +1394,11 @@ tty->print_cr("No speculation"); } } + } else { +#ifdef ASSERT + assert(speculation == NULL, "There should not be a speculation for method compiled by other compilers"); +#endif + } if (trap_bci == SynchronizationEntryBCI) { trap_bci = 0;