8218601: [AOT] Crash in AOTCodeHeap::mark_evol_dependent_methods
authorcoleenp
Thu, 07 Feb 2019 17:26:44 -0500
changeset 53688 4c6988db810a
parent 53687 e439ec989141
child 53692 314075ea3fcb
8218601: [AOT] Crash in AOTCodeHeap::mark_evol_dependent_methods Summary: null check nmethod in aot dependencies Reviewed-by: kvn
src/hotspot/share/aot/aotCodeHeap.cpp
--- a/src/hotspot/share/aot/aotCodeHeap.cpp	Thu Feb 07 17:23:24 2019 -0500
+++ b/src/hotspot/share/aot/aotCodeHeap.cpp	Thu Feb 07 17:26:44 2019 -0500
@@ -707,7 +707,9 @@
     for (int i = 0; i < methods_cnt; ++i) {
       int code_id = indexes[i];
       AOTCompiledMethod* aot = _code_to_aot[code_id]._aot;
-      aot->mark_for_deoptimization(false);
+      if (aot != NULL) {
+        aot->mark_for_deoptimization(false);
+      }
     }
   }
 }