Mercurial > hg > graal-compiler
changeset 13698:c3370b2e1cbc
added check for invalidated code in executeCompiledMethodVarargs
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 20 Jan 2014 16:27:24 +0100 |
parents | e8bd4f3776ee |
children | 2eee4d12e00c |
files | src/share/vm/graal/graalCompilerToVM.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompilerToVM.cpp Mon Jan 20 16:26:39 2014 +0100 +++ b/src/share/vm/graal/graalCompilerToVM.cpp Mon Jan 20 16:27:24 2014 +0100 @@ -688,6 +688,9 @@ HandleMark hm; jlong nmethodValue = HotSpotInstalledCode::codeBlob(hotspotInstalledCode); + if (nmethodValue == 0L) { + THROW_(vmSymbols::com_oracle_graal_api_code_InvalidInstalledCodeException(), NULL); + } nmethod* nm = (nmethod*) (address) nmethodValue; methodHandle mh = nm->method(); Symbol* signature = mh->signature();