< prev index next >

src/hotspot/share/opto/library_call.cpp

Print this page
*** 68,11 ***
    if (!m->is_loaded()) {
      // Do not attempt to inline unloaded methods.
      return nullptr;
    }
  
!   C2Compiler* compiler = (C2Compiler*)CompileBroker::compiler(CompLevel_full_optimization);
    bool is_available = false;
  
    {
      // For calling is_intrinsic_supported and is_intrinsic_disabled_by_flag
      // the compiler must transition to '_thread_in_vm' state because both
--- 68,11 ---
    if (!m->is_loaded()) {
      // Do not attempt to inline unloaded methods.
      return nullptr;
    }
  
!   C2Compiler* compiler = (C2Compiler*)CompilerThread::current()->compiler();
    bool is_available = false;
  
    {
      // For calling is_intrinsic_supported and is_intrinsic_disabled_by_flag
      // the compiler must transition to '_thread_in_vm' state because both
< prev index next >