diff src/share/vm/graal/graalVMToCompiler.cpp @ 10056:a323a9e20f9d

Fixed a few race conditions in the compilation queue.
author Christian Haeubl <haeubl@ssw.jku.at>
date Fri, 14 Jun 2013 19:12:56 +0200
parents 0f7ca53be929
children 3489047ffea2
line wrap: on
line diff
--- a/src/share/vm/graal/graalVMToCompiler.cpp	Fri Jun 14 15:52:59 2013 +0200
+++ b/src/share/vm/graal/graalVMToCompiler.cpp	Fri Jun 14 19:12:56 2013 +0200
@@ -96,11 +96,11 @@
   return result.get_jboolean();
 }
 
-jboolean VMToCompiler::compileMethod(Method* method, Handle holder, int entry_bci, jboolean blocking, int priority) {
+void VMToCompiler::compileMethod(Method* method, Handle holder, int entry_bci, jboolean blocking, int priority) {
   assert(method != NULL, "just checking");
   assert(!holder.is_null(), "just checking");
   Thread* THREAD = Thread::current();
-  JavaValue result(T_BOOLEAN);
+  JavaValue result(T_VOID);
   JavaCallArguments args;
   args.push_oop(instance());
   args.push_long((jlong) (address) method);
@@ -110,7 +110,6 @@
   args.push_int(priority);
   JavaCalls::call_interface(&result, vmToCompilerKlass(), vmSymbols::compileMethod_name(), vmSymbols::compileMethod_signature(), &args, THREAD);
   check_pending_exception("Error while calling compileMethod");
-  return result.get_jboolean();
 }
 
 void VMToCompiler::shutdownCompiler() {