hotspot/src/share/vm/compiler/compileBroker.cpp
changeset 13738 d67be49a5beb
parent 13728 882756847a04
child 13891 35dabd293e56
equal deleted inserted replaced
13737:aa8c9eb6d900 13738:d67be49a5beb
  1106   // If the requesting thread is holding the pending list lock
  1106   // If the requesting thread is holding the pending list lock
  1107   // then we just return. We can't risk blocking while holding
  1107   // then we just return. We can't risk blocking while holding
  1108   // the pending list lock or a 3-way deadlock may occur
  1108   // the pending list lock or a 3-way deadlock may occur
  1109   // between the reference handler thread, a GC (instigated
  1109   // between the reference handler thread, a GC (instigated
  1110   // by a compiler thread), and compiled method registration.
  1110   // by a compiler thread), and compiled method registration.
  1111   if (instanceRefKlass::owns_pending_list_lock(JavaThread::current())) {
  1111   if (InstanceRefKlass::owns_pending_list_lock(JavaThread::current())) {
  1112     return;
  1112     return;
  1113   }
  1113   }
  1114 
  1114 
  1115   // Outputs from the following MutexLocker block:
  1115   // Outputs from the following MutexLocker block:
  1116   CompileTask* task     = NULL;
  1116   CompileTask* task     = NULL;
  1438 // CompileBroker::is_compile_blocking
  1438 // CompileBroker::is_compile_blocking
  1439 //
  1439 //
  1440 // Should the current thread be blocked until this compilation request
  1440 // Should the current thread be blocked until this compilation request
  1441 // has been fulfilled?
  1441 // has been fulfilled?
  1442 bool CompileBroker::is_compile_blocking(methodHandle method, int osr_bci) {
  1442 bool CompileBroker::is_compile_blocking(methodHandle method, int osr_bci) {
  1443   assert(!instanceRefKlass::owns_pending_list_lock(JavaThread::current()), "possible deadlock");
  1443   assert(!InstanceRefKlass::owns_pending_list_lock(JavaThread::current()), "possible deadlock");
  1444   return !BackgroundCompilation;
  1444   return !BackgroundCompilation;
  1445 }
  1445 }
  1446 
  1446 
  1447 
  1447 
  1448 // ------------------------------------------------------------------
  1448 // ------------------------------------------------------------------