src/hotspot/share/oops/method.cpp
changeset 54669 ad45b3802d4e
parent 54623 1126f0607c70
child 54721 3661ad97da8f
--- 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());