8189649: AOT: assert(caller_frame.cb()->as_nmethod_or_null() == cm) failed: expect top frame nmethod
Reviewed-by: kvn
--- a/src/hotspot/share/runtime/deoptimization.cpp Tue Oct 24 14:53:03 2017 +0000
+++ b/src/hotspot/share/runtime/deoptimization.cpp Mon Oct 23 21:49:48 2017 -0700
@@ -1380,7 +1380,7 @@
RegisterMap reg_map(thread, UseBiasedLocking);
frame runtime_frame = thread->last_frame();
frame caller_frame = runtime_frame.sender(®_map);
- assert(caller_frame.cb()->as_nmethod_or_null() == cm, "expect top frame nmethod");
+ assert(caller_frame.cb()->as_compiled_method_or_null() == cm, "expect top frame compiled method");
Deoptimization::deoptimize(thread, caller_frame, ®_map, Deoptimization::Reason_not_compiled_exception_handler);
MethodData* trap_mdo = get_method_data(thread, cm->method(), true);