7013008: 2/3 assert(method == NULL || check_method(method, bcp)) failed: bcp must point into method
authornever
Wed, 19 Jan 2011 08:16:45 -0800
changeset 7917 5c35c053175b
parent 7916 84e5b29decb0
child 7918 ce1e4ae77aea
7013008: 2/3 assert(method == NULL || check_method(method, bcp)) failed: bcp must point into method Summary: The Relocator should pass a NULL methodOop when rewriting since its resource array can never contain breakpoints. Reviewed-by: dcubed, kvn, coleenp
hotspot/src/share/vm/runtime/relocator.hpp
--- a/hotspot/src/share/vm/runtime/relocator.hpp	Wed Jan 19 07:41:39 2011 -0800
+++ b/hotspot/src/share/vm/runtime/relocator.hpp	Wed Jan 19 08:16:45 2011 -0800
@@ -106,7 +106,7 @@
   // get the address of in the code_array
   inline char* addr_at(int bci) const             { return (char*) &code_array()[bci]; }
 
-  int  instruction_length_at(int bci)             { return Bytecodes::length_at(_method(), code_array() + bci); }
+  int  instruction_length_at(int bci)             { return Bytecodes::length_at(NULL, code_array() + bci); }
 
   // Helper methods
   int  align(int n) const                          { return (n+3) & ~3; }