Mercurial > hg > graal-compiler
diff src/share/vm/graal/graalRuntime.cpp @ 10542:554f67e4ff3f
Use slow-path stub call instead of deopt in lowering of DynamicNewArrayNode.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Wed, 26 Jun 2013 15:35:58 +0200 |
parents | 3489047ffea2 |
children | 97e282186b5b |
line wrap: on
line diff
--- a/src/share/vm/graal/graalRuntime.cpp Wed Jun 26 15:22:21 2013 +0200 +++ b/src/share/vm/graal/graalRuntime.cpp Wed Jun 26 15:35:58 2013 +0200 @@ -29,6 +29,7 @@ #include "prims/jvm.h" #include "runtime/biasedLocking.hpp" #include "runtime/interfaceSupport.hpp" +#include "runtime/reflection.hpp" #include "utilities/debug.hpp" // Simple helper to see if the caller of a runtime stub which @@ -101,6 +102,11 @@ thread->set_vm_result(obj); JRT_END +JRT_ENTRY(void, GraalRuntime::dynamic_new_array(JavaThread* thread, oop element_mirror, jint length)) + oop obj = Reflection::reflect_new_array(element_mirror, length, CHECK); + thread->set_vm_result(obj); +JRT_END + extern void vm_exit(int code); // Enter this method from compiled code handler below. This is where we transition