Mercurial > hg > graal-jvmci-8
diff src/share/vm/graal/graalVMToCompiler.cpp @ 12652:0dd597c6c9c7
fixed performance regression in hosted CompileTheWorld
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 01 Nov 2013 13:07:22 +0100 |
parents | f87c68d79f07 |
children | f6c511451e4a |
line wrap: on
line diff
--- a/src/share/vm/graal/graalVMToCompiler.cpp Fri Nov 01 12:06:22 2013 +0100 +++ b/src/share/vm/graal/graalVMToCompiler.cpp Fri Nov 01 13:07:22 2013 +0100 @@ -162,7 +162,16 @@ JavaCallArguments args; args.push_oop(instance()); JavaCalls::call_interface(&result, vmToCompilerKlass(), vmSymbols::bootstrap_name(), vmSymbols::void_method_signature(), &args, THREAD); - check_pending_exception("Error while calling boostrap"); + check_pending_exception("Error while calling bootstrap"); +} + +void VMToCompiler::compileTheWorld() { + JavaThread* THREAD = JavaThread::current(); + JavaValue result(T_VOID); + JavaCallArguments args; + args.push_oop(instance()); + JavaCalls::call_interface(&result, vmToCompilerKlass(), vmSymbols::compileTheWorld_name(), vmSymbols::void_method_signature(), &args, THREAD); + check_pending_exception("Error while calling compileTheWorld"); } oop VMToCompiler::createJavaField(Handle holder, Handle name, Handle type, int index, int flags, jboolean internal, TRAPS) {