# HG changeset patch # User Thomas Wuerthinger # Date 1365740375 -7200 # Node ID 9a3e25e270a0c71b555b32f93ba38987eaa5eb60 # Parent 4e2a0220118e87a8dfb242e5df03e6092edf9439 Clear installed code pointer when unloading method. diff -r 4e2a0220118e -r 9a3e25e270a0 src/share/vm/code/nmethod.cpp --- 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()) {