comparison src/share/vm/runtime/relocator.hpp @ 2146:2f33b03bd915

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
author never
date Wed, 19 Jan 2011 08:16:45 -0800
parents 8012aa3ccede
children b92c45f2bc75
comparison
equal deleted inserted replaced
2145:c1a0ede55d6f 2146:2f33b03bd915
104 inline void short_at_put(int bci, short value) { Bytes::put_Java_u2((address) &code_array()[bci], value); } 104 inline void short_at_put(int bci, short value) { Bytes::put_Java_u2((address) &code_array()[bci], value); }
105 105
106 // get the address of in the code_array 106 // get the address of in the code_array
107 inline char* addr_at(int bci) const { return (char*) &code_array()[bci]; } 107 inline char* addr_at(int bci) const { return (char*) &code_array()[bci]; }
108 108
109 int instruction_length_at(int bci) { return Bytecodes::length_at(_method(), code_array() + bci); } 109 int instruction_length_at(int bci) { return Bytecodes::length_at(NULL, code_array() + bci); }
110 110
111 // Helper methods 111 // Helper methods
112 int align(int n) const { return (n+3) & ~3; } 112 int align(int n) const { return (n+3) & ~3; }
113 int code_slop_pct() const { return 25; } 113 int code_slop_pct() const { return 25; }
114 bool is_opcode_lookupswitch(Bytecodes::Code bc); 114 bool is_opcode_lookupswitch(Bytecodes::Code bc);