Mercurial > hg > truffle
diff src/share/vm/runtime/stackValue.cpp @ 1937:4853c5cad3aa
More deoptmization tracing.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Thu, 23 Dec 2010 22:14:31 +0100 |
parents | c18cbe5936b8 |
children | 1aa5b22a7716 |
line wrap: on
line diff
--- a/src/share/vm/runtime/stackValue.cpp Thu Dec 23 18:13:28 2010 +0100 +++ b/src/share/vm/runtime/stackValue.cpp Thu Dec 23 22:14:31 2010 +0100 @@ -114,6 +114,14 @@ val = (oop)NULL; } #endif +#ifndef PRODUCT + if (!val->is_oop()) { + tty->print_cr("found wrong oop %x at location:", val); + sv->print(); + tty->print_cr(""); + tty->print_cr("one less %d; one more %d", (*(((oop *)value_addr) - 1))->is_oop(), (*(((oop *)value_addr) + 1))->is_oop()); + } +#endif Handle h(val); // Wrap a handle around the oop return new StackValue(h); }