changeset 47572:0d2d80c0d425

8189649: AOT: assert(caller_frame.cb()->as_nmethod_or_null() == cm) failed: expect top frame nmethod Reviewed-by: kvn
author dlong
date Mon, 23 Oct 2017 21:49:48 -0700
parents 4a095d9ea838
children 1630ba56759d
files src/hotspot/share/runtime/deoptimization.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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(&reg_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, &reg_map, Deoptimization::Reason_not_compiled_exception_handler);
 
   MethodData* trap_mdo = get_method_data(thread, cm->method(), true);