diff src/share/vm/oops/method.hpp @ 24042:d18eb5b5a3d6

8161144: Fix for JDK-8147451 failed: Crash in Method::checked_resolve_jmethod_id(_jmethodID*) Summary: Method::deallocate_contents() should clear 'this' from list of Methods in JNIMethodBlock, when class is unloaded. Reviewed-by: coleenp, dholmes
author shshahma
date Fri, 05 Aug 2016 10:47:35 +0000
parents cb4af293fe70
children 9b69cec6d01b
line wrap: on
line diff
--- a/src/share/vm/oops/method.hpp	Mon Aug 08 13:17:49 2016 -0700
+++ b/src/share/vm/oops/method.hpp	Fri Aug 05 10:47:35 2016 +0000
@@ -768,6 +768,8 @@
 
   // Helper routines for intrinsic_id() and vmIntrinsics::method().
   void init_intrinsic_id();     // updates from _none if a match
+  void clear_jmethod_id(ClassLoaderData* loader_data);
+
   static vmSymbols::SID klass_id_for_intrinsics(Klass* holder);
 
   bool     jfr_towrite()                { return _jfr_towrite;              }