hotspot/src/share/vm/runtime/deoptimization.cpp
changeset 31228 8e427370cdd1
parent 30183 a6588c0a3259
child 31593 7b9e292896d2
equal deleted inserted replaced
31133:3e7542b42a61 31228:8e427370cdd1
  1458     // allows the compiled code to stay around until enough traps are seen,
  1458     // allows the compiled code to stay around until enough traps are seen,
  1459     // and until the compiler gets around to recompiling the trapping method.
  1459     // and until the compiler gets around to recompiling the trapping method.
  1460     //
  1460     //
  1461     // The other actions cause immediate removal of the present code.
  1461     // The other actions cause immediate removal of the present code.
  1462 
  1462 
  1463     bool update_trap_state = (reason != Reason_tenured);
  1463     // Traps caused by injected profile shouldn't pollute trap counts.
       
  1464     bool injected_profile_trap = trap_method->has_injected_profile() &&
       
  1465                                  (reason == Reason_intrinsic || reason == Reason_unreached);
       
  1466 
       
  1467     bool update_trap_state = (reason != Reason_tenured) && !injected_profile_trap;
  1464     bool make_not_entrant = false;
  1468     bool make_not_entrant = false;
  1465     bool make_not_compilable = false;
  1469     bool make_not_compilable = false;
  1466     bool reprofile = false;
  1470     bool reprofile = false;
  1467     switch (action) {
  1471     switch (action) {
  1468     case Action_none:
  1472     case Action_none: