hotspot/src/share/vm/runtime/sharedRuntime.cpp
changeset 27420 04e6f914cce1
parent 26919 361b4b4c92c0
child 27880 afb974a04396
child 27677 b1997f2f1b56
equal deleted inserted replaced
27419:a934f24b4dcf 27420:04e6f914cce1
  2419     }
  2419     }
  2420     if (new_adapter == NULL) {
  2420     if (new_adapter == NULL) {
  2421       // CodeCache is full, disable compilation
  2421       // CodeCache is full, disable compilation
  2422       // Ought to log this but compile log is only per compile thread
  2422       // Ought to log this but compile log is only per compile thread
  2423       // and we're some non descript Java thread.
  2423       // and we're some non descript Java thread.
  2424       MutexUnlocker mu(AdapterHandlerLibrary_lock);
       
  2425       CompileBroker::handle_full_code_cache(CodeBlobType::NonNMethod);
       
  2426       return NULL; // Out of CodeCache space
  2424       return NULL; // Out of CodeCache space
  2427     }
  2425     }
  2428     entry->relocate(new_adapter->content_begin());
  2426     entry->relocate(new_adapter->content_begin());
  2429 #ifndef PRODUCT
  2427 #ifndef PRODUCT
  2430     // debugging suppport
  2428     // debugging suppport
  2592     if (PrintCompilation) {
  2590     if (PrintCompilation) {
  2593       ttyLocker ttyl;
  2591       ttyLocker ttyl;
  2594       CompileTask::print_compilation(tty, nm, method->is_static() ? "(static)" : "");
  2592       CompileTask::print_compilation(tty, nm, method->is_static() ? "(static)" : "");
  2595     }
  2593     }
  2596     nm->post_compiled_method_load_event();
  2594     nm->post_compiled_method_load_event();
  2597   } else {
       
  2598     // CodeCache is full, disable compilation
       
  2599     CompileBroker::handle_full_code_cache(CodeBlobType::MethodNonProfiled);
       
  2600   }
  2595   }
  2601 }
  2596 }
  2602 
  2597 
  2603 JRT_ENTRY_NO_ASYNC(void, SharedRuntime::block_for_jni_critical(JavaThread* thread))
  2598 JRT_ENTRY_NO_ASYNC(void, SharedRuntime::block_for_jni_critical(JavaThread* thread))
  2604   assert(thread == JavaThread::current(), "must be");
  2599   assert(thread == JavaThread::current(), "must be");