--- old/src/cpu/aarch64/vm/frame_aarch64.inline.hpp 2017-01-19 14:28:53.552560403 +0100 +++ new/src/cpu/aarch64/vm/frame_aarch64.inline.hpp 2017-01-19 14:28:53.336560396 +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;