7013008: 2/3 assert(method == NULL || check_method(method, bcp)) failed: bcp must point into method

Wed, 19 Jan 2011 08:16:45 -0800

author
never
date
Wed, 19 Jan 2011 08:16:45 -0800
changeset 2466
2f33b03bd915
parent 2465
c1a0ede55d6f
child 2467
9afee0b9fc1d

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

src/share/vm/runtime/relocator.hpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/runtime/relocator.hpp	Wed Jan 19 07:41:39 2011 -0800
     1.2 +++ b/src/share/vm/runtime/relocator.hpp	Wed Jan 19 08:16:45 2011 -0800
     1.3 @@ -106,7 +106,7 @@
     1.4    // get the address of in the code_array
     1.5    inline char* addr_at(int bci) const             { return (char*) &code_array()[bci]; }
     1.6  
     1.7 -  int  instruction_length_at(int bci)             { return Bytecodes::length_at(_method(), code_array() + bci); }
     1.8 +  int  instruction_length_at(int bci)             { return Bytecodes::length_at(NULL, code_array() + bci); }
     1.9  
    1.10    // Helper methods
    1.11    int  align(int n) const                          { return (n+3) & ~3; }

mercurial