changeset 54821:4c6988db810a

8218601: [AOT] Crash in AOTCodeHeap::mark_evol_dependent_methods Summary: null check nmethod in aot dependencies Reviewed-by: kvn
author coleenp
date Thu, 07 Feb 2019 17:26:44 -0500
parents e439ec989141
children 314075ea3fcb
files src/hotspot/share/aot/aotCodeHeap.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
+      }
     }
   }
 }