Mercurial > hg > graal-compiler
changeset 12414:98031e66de15
Fix unittests
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Tue, 15 Oct 2013 01:50:48 +0200 |
parents | 5ae8c9cf46e9 |
children | 083e90f11c93 |
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 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;