< prev index next >

src/hotspot/share/runtime/deoptimization.cpp

Print this page
@@ -1824,11 +1824,11 @@
  }
  
  #if INCLUDE_JVMCI
  address Deoptimization::deoptimize_for_missing_exception_handler(nmethod* nm) {
    // there is no exception handler for this pc => deoptimize
-   nm->make_not_entrant(nmethod::ChangeReason::missing_exception_handler);
+   nm->make_not_entrant(nmethod::InvalidationReason::MISSING_EXCEPTION_HANDLER);
  
    // Use Deoptimization::deoptimize for all of its side-effects:
    // gathering traps statistics, logging...
    // it also patches the return pc but we do not care about that
    // since we return a continuation to the deopt_blob below.

@@ -2453,11 +2453,11 @@
  
      // Take requested actions on the method:
  
      // Recompile
      if (make_not_entrant) {
-       if (!nm->make_not_entrant(nmethod::ChangeReason::uncommon_trap)) {
+       if (!nm->make_not_entrant(nmethod::InvalidationReason::UNCOMMON_TRAP)) {
          return; // the call did not change nmethod's state
        }
  
        if (pdata != nullptr) {
          // Record the recompilation event, if any.
< prev index next >