Mercurial > hg > truffle
diff src/share/vm/code/nmethod.cpp @ 1937:4853c5cad3aa
More deoptmization tracing.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Thu, 23 Dec 2010 22:14:31 +0100 |
parents | 98dbef29f10b |
children | 06f017f7daa7 |
line wrap: on
line diff
--- a/src/share/vm/code/nmethod.cpp Thu Dec 23 18:13:28 2010 +0100 +++ b/src/share/vm/code/nmethod.cpp Thu Dec 23 22:14:31 2010 +0100 @@ -1099,6 +1099,12 @@ ScopeDesc* nmethod::scope_desc_at(address pc) { PcDesc* pd = pc_desc_at(pc); +#ifdef ASSERT + if (pd == NULL) { + tty->print_cr(err_msg("Missing scope at relative pc %d of method %s", pc - code_begin(), this->method()->name()->as_C_string())); + print_pcs(); + } +#endif guarantee(pd != NULL, "scope must be present"); return new ScopeDesc(this, pd->scope_decode_offset(), pd->obj_decode_offset(), pd->should_reexecute(),