src/hotspot/share/aot/aotCodeHeap.cpp
changeset 53688 4c6988db810a
parent 53641 c572eb605087
child 54150 5529640c5f67
equal deleted inserted replaced
53687:e439ec989141 53688:4c6988db810a
   705     int methods_cnt = *(int*)methods_cnt_adr;
   705     int methods_cnt = *(int*)methods_cnt_adr;
   706     int* indexes = (int*)(methods_cnt_adr + 4);
   706     int* indexes = (int*)(methods_cnt_adr + 4);
   707     for (int i = 0; i < methods_cnt; ++i) {
   707     for (int i = 0; i < methods_cnt; ++i) {
   708       int code_id = indexes[i];
   708       int code_id = indexes[i];
   709       AOTCompiledMethod* aot = _code_to_aot[code_id]._aot;
   709       AOTCompiledMethod* aot = _code_to_aot[code_id]._aot;
   710       aot->mark_for_deoptimization(false);
   710       if (aot != NULL) {
       
   711         aot->mark_for_deoptimization(false);
       
   712       }
   711     }
   713     }
   712   }
   714   }
   713 }
   715 }
   714 
   716 
   715 void AOTCodeHeap::sweep_dependent_methods(int* indexes, int methods_cnt) {
   717 void AOTCodeHeap::sweep_dependent_methods(int* indexes, int methods_cnt) {