Mercurial > hg > graal-jvmci-8
comparison src/share/vm/compiler/compileBroker.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 | 89e4d67fdd2a |
children | 836a62f43af9 |
comparison
equal
deleted
inserted
replaced
10055:9469034773b2 | 10056:a323a9e20f9d |
---|---|
1121 if (InstanceRefKlass::owns_pending_list_lock(JavaThread::current())) { | 1121 if (InstanceRefKlass::owns_pending_list_lock(JavaThread::current())) { |
1122 return; | 1122 return; |
1123 } | 1123 } |
1124 #ifdef GRAALVM | 1124 #ifdef GRAALVM |
1125 if (!JavaThread::current()->is_compiling()) { | 1125 if (!JavaThread::current()->is_compiling()) { |
1126 method->set_queued_for_compilation(); | |
1127 GraalCompiler::instance()->compile_method(method, osr_bci, is_compile_blocking(method, osr_bci)); | 1126 GraalCompiler::instance()->compile_method(method, osr_bci, is_compile_blocking(method, osr_bci)); |
1128 } else { | 1127 } else { |
1129 // Recursive compile request => ignore. | 1128 // Recursive compile request => ignore. |
1130 } | 1129 } |
1131 #else | 1130 #else |