# HG changeset patch # User Doug Simon # Date 1337025092 -7200 # Node ID fc1943f18fef05a9ebd40a26ad68e095bb4475ba # Parent afb983c25aa032a939f4a54b9ce99b0cca7015dc fixed bug in returning array values from CompilerToVMImpl.executeCompiledMethodVarargs diff -r afb983c25aa0 -r fc1943f18fef src/share/vm/graal/graalCompilerToVM.cpp --- 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);