From 2ec2714d1cb2e0c2442ed7c131de9dd9fd799f0a Mon Sep 17 00:00:00 2001 From: never Date: Wed, 19 Jan 2011 08:16:45 -0800 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/vm/runtime/relocator.hpp b/src/share/vm/runtime/relocator.hpp index 7ed0d18d3..7fc4241c8 100644 --- a/src/share/vm/runtime/relocator.hpp +++ b/src/share/vm/runtime/relocator.hpp @@ -106,7 +106,7 @@ class Relocator : public ResourceObj { // 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; } -- GitLab