< prev index next >

src/hotspot/share/aot/aotCodeHeap.cpp

Print this page

        

@@ -705,13 +705,15 @@
     int methods_cnt = *(int*)methods_cnt_adr;
     int* indexes = (int*)(methods_cnt_adr + 4);
     for (int i = 0; i < methods_cnt; ++i) {
       int code_id = indexes[i];
       AOTCompiledMethod* aot = _code_to_aot[code_id]._aot;
+      if (aot != NULL) {
       aot->mark_for_deoptimization(false);
     }
   }
+  }
 }
 
 void AOTCodeHeap::sweep_dependent_methods(int* indexes, int methods_cnt) {
   int marked = 0;
   for (int i = 0; i < methods_cnt; ++i) {
< prev index next >