Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompiler.cpp @ 4139:feb590a8497f
remove pollJavaQueue and related functionality, minimize diff against HotSpot in the compileBroker.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sun, 18 Dec 2011 00:41:15 +0100 |
parents | 50a1d38cd7ac |
children | bcbb918f5ac6 |
comparison
equal
deleted
inserted
replaced
4138:82af018d61db | 4139:feb590a8497f |
---|---|
292 fatal(err_msg("unexpected CiKind: %c", ch)); | 292 fatal(err_msg("unexpected CiKind: %c", ch)); |
293 break; | 293 break; |
294 } | 294 } |
295 return T_ILLEGAL; | 295 return T_ILLEGAL; |
296 } | 296 } |
297 | |
298 void GraalCompiler::poll_java_queue() { | |
299 int system_dictionary_modification_counter; | |
300 { | |
301 MutexLocker locker(Compile_lock, Thread::current()); | |
302 system_dictionary_modification_counter = SystemDictionary::number_of_modifications(); | |
303 } | |
304 | |
305 { | |
306 ThreadToNativeFromVM ttn(JavaThread::current()); | |
307 ciEnv ci_env(NULL, system_dictionary_modification_counter); | |
308 { | |
309 VM_ENTRY_MARK; | |
310 ResourceMark rm; | |
311 HandleMark hm; | |
312 | |
313 VMExits::pollJavaQueue(); | |
314 } | |
315 } | |
316 } | |
317 |