Mercurial > hg > graal-compiler
changeset 10477:7943479d36f3
Fix for invalidateInstalledCode.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 21 Jun 2013 22:09:25 +0200 |
parents | cd68d6902328 |
children | dd3333e4f182 |
files | src/share/vm/graal/graalCompilerToVM.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompilerToVM.cpp Fri Jun 21 22:04:46 2013 +0200 +++ b/src/share/vm/graal/graalCompilerToVM.cpp Fri Jun 21 22:09:25 2013 +0200 @@ -1160,7 +1160,7 @@ C2V_VMENTRY(void, invalidateInstalledCode, (JNIEnv *env, jobject, jobject hotspotInstalledCode)) jlong nativeMethod = HotSpotInstalledCode::codeBlob(hotspotInstalledCode); nmethod* m = (nmethod*)nativeMethod; - if (!m->is_not_entrant()) { + if (m != NULL && !m->is_not_entrant()) { m->mark_for_deoptimization(); VM_Deoptimize op; VMThread::execute(&op);