< prev index next >

src/hotspot/share/oops/instanceKlass.cpp

Print this page
*** 3493,11 ***
  
    // Get rid of the osr methods for the same bci that have lower levels.
    for (int l = CompLevel_limited_profile; l < n->comp_level(); l++) {
      nmethod *inv = lookup_osr_nmethod(n->method(), n->osr_entry_bci(), l, true);
      if (inv != nullptr && inv->is_in_use()) {
!       inv->make_not_entrant(nmethod::ChangeReason::OSR_invalidation_of_lower_level);
      }
    }
  }
  
  // Remove osr nmethod from the list. Return true if found and removed.
--- 3493,11 ---
  
    // Get rid of the osr methods for the same bci that have lower levels.
    for (int l = CompLevel_limited_profile; l < n->comp_level(); l++) {
      nmethod *inv = lookup_osr_nmethod(n->method(), n->osr_entry_bci(), l, true);
      if (inv != nullptr && inv->is_in_use()) {
!       inv->make_not_entrant(nmethod::InvalidationReason::OSR_INVALIDATION_OF_LOWER_LEVEL);
      }
    }
  }
  
  // Remove osr nmethod from the list. Return true if found and removed.
< prev index next >