Mercurial > hg > truffle
diff src/share/vm/code/nmethod.cpp @ 12414:98031e66de15
Fix unittests
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Tue, 15 Oct 2013 01:50:48 +0200 |
parents | 738023c641c2 |
children | 7fedc59e2cdc |
line wrap: on
line diff
--- a/src/share/vm/code/nmethod.cpp Mon Oct 14 23:38:14 2013 +0200 +++ b/src/share/vm/code/nmethod.cpp Tue Oct 15 01:50:48 2013 +0200 @@ -1484,6 +1484,12 @@ } else { assert(state == not_entrant, "other cases may need to be handled differently"); } +#ifdef GRAAL + if (_graal_installed_code != NULL) { + // Break the link between nmethod and HotSpotInstalledCode such that the nmethod can subsequently be flushed safely. + HotSpotInstalledCode::set_codeBlob(_graal_installed_code, 0); + } +#endif if (TraceCreateZombies) { ResourceMark m;