Mercurial > hg > truffle
diff src/share/vm/graal/graalCompiler.cpp @ 5018:bf63d72879aa
fixed an issue that prevented java.util.concurrent methods from being compiled
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Fri, 02 Mar 2012 16:44:36 -0800 |
parents | 5e6f1026a63e |
children | 2f2c6347fce4 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.cpp Thu Mar 01 15:18:32 2012 -0800 +++ b/src/share/vm/graal/graalCompiler.cpp Fri Mar 02 16:44:36 2012 -0800 @@ -120,9 +120,12 @@ JavaThread::current()->set_env(NULL); JavaThread::current()->set_compiling(true); Handle hotspot_method = GraalCompiler::createHotSpotMethodResolved(method, CHECK); - VMToCompiler::compileMethod(hotspot_method, entry_bci, blocking); + jboolean success = VMToCompiler::compileMethod(hotspot_method, entry_bci, blocking); JavaThread::current()->set_compiling(false); JavaThread::current()->set_env(current_env); + if (success != JNI_TRUE) { + method->clear_queued_for_compilation(); + } } // Compilation entry point for methods