hotspot/src/cpu/aarch64/vm/frame_aarch64.inline.hpp
changeset 43474 8fbf946045f6
parent 38144 0976c0c5c5d3
--- a/hotspot/src/cpu/aarch64/vm/frame_aarch64.inline.hpp	Sun Jan 22 22:18:49 2017 -0800
+++ b/hotspot/src/cpu/aarch64/vm/frame_aarch64.inline.hpp	Mon Jan 23 09:53:27 2017 +0100
@@ -82,7 +82,8 @@
   address original_pc = CompiledMethod::get_deopt_original_pc(this);
   if (original_pc != NULL) {
     _pc = original_pc;
-    assert(((CompiledMethod*)_cb)->insts_contains(_pc), "original PC must be in CompiledMethod");
+    assert(_cb->as_compiled_method()->insts_contains_inclusive(_pc),
+           "original PC must be in the main code section of the the compiled method (or must be immediately following it)");
     _deopt_state = is_deoptimized;
   } else {
     _deopt_state = not_deoptimized;