diff -r 0bda2308eded -r ad45b3802d4e src/hotspot/share/oops/method.cpp --- a/src/hotspot/share/oops/method.cpp Wed May 01 12:41:26 2019 -0400 +++ b/src/hotspot/share/oops/method.cpp Wed May 01 12:31:29 2019 -0700 @@ -116,6 +116,11 @@ void Method::deallocate_contents(ClassLoaderData* loader_data) { MetadataFactory::free_metadata(loader_data, constMethod()); set_constMethod(NULL); +#if INCLUDE_JVMCI + if (method_data()) { + FailedSpeculation::free_failed_speculations(method_data()->get_failed_speculations_address()); + } +#endif MetadataFactory::free_metadata(loader_data, method_data()); set_method_data(NULL); MetadataFactory::free_metadata(loader_data, method_counters());