diff src/share/vm/classfile/systemDictionary.cpp @ 20432:aff6ccb506cb

8056154: JVM crash with EXCEPTION_ACCESS_VIOLATION when there are many threads running Summary: Don't make compiled MH intrinsics not entrant when redefining classes Reviewed-by: kvn, vlivanov
author iveresov
date Fri, 05 Sep 2014 14:39:45 -0700
parents bb239308be67
children 0d78074d2444
line wrap: on
line diff
--- a/src/share/vm/classfile/systemDictionary.cpp	Wed Sep 03 15:26:06 2014 +0400
+++ b/src/share/vm/classfile/systemDictionary.cpp	Fri Sep 05 14:39:45 2014 -0700
@@ -2291,6 +2291,9 @@
   }
 
   assert(spe != NULL && spe->method() != NULL, "");
+  assert(!UseCompiler || (spe->method()->has_compiled_code() &&
+         spe->method()->code()->entry_point() == spe->method()->from_compiled_entry()),
+         "MH intrinsic invariant");
   return spe->method();
 }