changeset 9030:9a3e25e270a0

Clear installed code pointer when unloading method.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 12 Apr 2013 06:19:35 +0200
parents 4e2a0220118e
children 220c9bef97a4 7309bde698f3 c6a1ffc707ff
files src/share/vm/code/nmethod.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/code/nmethod.cpp	Fri Apr 12 05:15:14 2013 +0200
+++ b/src/share/vm/code/nmethod.cpp	Fri Apr 12 06:19:35 2013 +0200
@@ -1306,6 +1306,12 @@
     _method = NULL;            // Clear the method of this dead nmethod
   }
 
+#ifdef GRAAL
+    if (_graal_installed_code != NULL) {
+      _graal_installed_code = NULL;
+    }
+#endif
+
   // Make the class unloaded - i.e., change state and notify sweeper
   assert(SafepointSynchronize::is_at_safepoint(), "must be at safepoint");
   if (is_in_use()) {