comparison src/share/vm/graal/graalCompiler.cpp @ 3619:5e9645341ec3

support for new RiRuntime features: add code without making it the default for the method, executing Java tasks on the compile thread, communicate nmethod reference to Java code as HotSpotCompiledMethod
author Lukas Stadler <lukas.stadler@jku.at>
date Wed, 09 Nov 2011 11:27:38 +0100
parents ff472e09af46
children 136ea96eb7f8
comparison
equal deleted inserted replaced
3601:3822c5969a8b 3619:5e9645341ec3
262 break; 262 break;
263 } 263 }
264 return T_ILLEGAL; 264 return T_ILLEGAL;
265 } 265 }
266 266
267 void GraalCompiler::poll_java_queue() {
268 int system_dictionary_modification_counter;
269 {
270 MutexLocker locker(Compile_lock, Thread::current());
271 system_dictionary_modification_counter = SystemDictionary::number_of_modifications();
272 }
273
274 {
275 ThreadToNativeFromVM ttn(JavaThread::current());
276 ciEnv ci_env(NULL, system_dictionary_modification_counter);
277 {
278 VM_ENTRY_MARK;
279 ResourceMark rm;
280 HandleMark hm;
281
282 VMExits::pollJavaQueue();
283 }
284 }
285 }