Mercurial > hg > truffle
changeset 5395:fc1943f18fef
fixed bug in returning array values from CompilerToVMImpl.executeCompiledMethodVarargs
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 14 May 2012 21:51:32 +0200 |
parents | afb983c25aa0 |
children | c3de4d2988c7 |
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 May 11 16:58:22 2012 +0200 +++ b/src/share/vm/graal/graalCompilerToVM.cpp Mon May 14 21:51:32 2012 +0200 @@ -1047,7 +1047,7 @@ if (jap.get_ret_type() == T_VOID) { return NULL; - } else if (jap.get_ret_type() == T_OBJECT) { + } else if (jap.get_ret_type() == T_OBJECT || jap.get_ret_type() == T_ARRAY) { return JNIHandles::make_local((oop) result.get_jobject()); } else { oop o = java_lang_boxing_object::create(jap.get_ret_type(), (jvalue *) result.get_value_addr(), CHECK_NULL);