src/hotspot/share/aot/aotCodeHeap.cpp
changeset 53688 4c6988db810a
parent 53641 c572eb605087
child 54150 5529640c5f67
--- 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);
+      }
     }
   }
 }