diff src/share/vm/interpreter/bytecodeTracer.cpp @ 4042:b20d64f83668

7090904: JSR 292: JRuby junit test crashes in PSScavengeRootsClosure::do_oop Reviewed-by: kvn, never, jrose
author twisti
date Mon, 24 Oct 2011 07:53:17 -0700
parents f08d439fab8c
children da91efe96a93
line wrap: on
line diff
--- a/src/share/vm/interpreter/bytecodeTracer.cpp	Sun Oct 23 23:57:39 2011 -0700
+++ b/src/share/vm/interpreter/bytecodeTracer.cpp	Mon Oct 24 07:53:17 2011 -0700
@@ -241,7 +241,7 @@
         st->print_cr(" not secondary entry?", i);
         return false;
       }
-      i = cache->entry_at(i)->main_entry_index();
+      i = cache->entry_at(i)->main_entry_index() + constantPoolOopDesc::CPCACHE_INDEX_TAG;
       goto check_cache_index;
     } else {
       st->print_cr(" not in cache[*]?", i);