changeset 2196:4cd9add59b1e

7024866: # assert(limit == NULL || limit <= nm->code_end()) failed: in bounds Reviewed-by: kvn, iveresov
author never
date Fri, 04 Mar 2011 20:01:48 -0800
parents 8c9c9ee30d71
children 8ec5e1f45ea1
files src/share/vm/code/nmethod.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/code/nmethod.cpp	Thu Mar 03 23:31:45 2011 -0800
+++ b/src/share/vm/code/nmethod.cpp	Fri Mar 04 20:01:48 2011 -0800
@@ -1881,7 +1881,7 @@
 
 
 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();