8218601: [AOT] Crash in AOTCodeHeap::mark_evol_dependent_methods
Summary: null check nmethod in aot dependencies
Reviewed-by: kvn
--- 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);
+ }
}
}
}