rev 54838 : [mq]: 8221734-v2 rev 54839 : [mq]: 8221734-v3
@@ -186,11 +186,13 @@ method()->set_aot_code(NULL); } #endif // Remove AOTCompiledMethod from method. - Method::unlink_code(method(), this); + if (method() != NULL) { + method()->unlink_code(this); + } } // leave critical region under CompiledMethod_lock if (TraceCreateZombies) { ResourceMark m;