hotspot/src/share/vm/runtime/sharedRuntime.cpp
changeset 6270 d628c75fbf48
parent 6176 4d9030fe341f
child 6418 6671edbd230e
equal deleted inserted replaced
6269:10e06287c0b0 6270:d628c75fbf48
  2491                                                   ret_type);
  2491                                                   ret_type);
  2492     }
  2492     }
  2493   }
  2493   }
  2494 
  2494 
  2495   // Must unlock before calling set_code
  2495   // Must unlock before calling set_code
       
  2496 
  2496   // Install the generated code.
  2497   // Install the generated code.
  2497   if (nm != NULL) {
  2498   if (nm != NULL) {
  2498     method->set_code(method, nm);
  2499     method->set_code(method, nm);
  2499     nm->post_compiled_method_load_event();
  2500     nm->post_compiled_method_load_event();
  2500   } else {
  2501   } else {
  2501     // CodeCache is full, disable compilation
  2502     // CodeCache is full, disable compilation
  2502     // Ought to log this but compile log is only per compile thread
       
  2503     // and we're some non descript Java thread.
       
  2504     MutexUnlocker mu(AdapterHandlerLibrary_lock);
       
  2505     CompileBroker::handle_full_code_cache();
  2503     CompileBroker::handle_full_code_cache();
  2506   }
  2504   }
  2507   return nm;
  2505   return nm;
  2508 }
  2506 }
  2509 
  2507