Mercurial > hg > graal-jvmci-8
diff src/share/vm/code/nmethod.cpp @ 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 | f94bb5d20e5d |
children | c6a1ffc707ff |
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()) {