diff --git a/src/share/vm/code/nmethod.cpp b/src/share/vm/code/nmethod.cpp index b75569b54a677436bc501aad5ecaa45033d56ccc..d401ddc62087c1e398588f47d79ab5fe4c2c4589 100644 --- a/src/share/vm/code/nmethod.cpp +++ b/src/share/vm/code/nmethod.cpp @@ -1881,7 +1881,7 @@ void nmethod::preserve_callee_argument_oops(frame fr, const RegisterMap *reg_map oop nmethod::embeddedOop_at(u_char* p) { - RelocIterator iter(this, p, p + oopSize); + RelocIterator iter(this, p, p + 1); while (iter.next()) if (iter.type() == relocInfo::oop_type) { return iter.oop_reloc()->oop_value();