src/share/vm/runtime/deoptimization.cpp

changeset 7890
bf41eee321e5
parent 7598
ddce0b7cee93
child 7994
04ff2f6cd0eb
child 8395
1442c833c50e
equal deleted inserted replaced
7889:0b7060827bca 7890:bf41eee321e5
1467 // allows the compiled code to stay around until enough traps are seen, 1467 // allows the compiled code to stay around until enough traps are seen,
1468 // and until the compiler gets around to recompiling the trapping method. 1468 // and until the compiler gets around to recompiling the trapping method.
1469 // 1469 //
1470 // The other actions cause immediate removal of the present code. 1470 // The other actions cause immediate removal of the present code.
1471 1471
1472 bool update_trap_state = true; 1472 // Traps caused by injected profile shouldn't pollute trap counts.
1473 bool injected_profile_trap = trap_method->has_injected_profile() &&
1474 (reason == Reason_intrinsic || reason == Reason_unreached);
1475 bool update_trap_state = !injected_profile_trap;
1473 bool make_not_entrant = false; 1476 bool make_not_entrant = false;
1474 bool make_not_compilable = false; 1477 bool make_not_compilable = false;
1475 bool reprofile = false; 1478 bool reprofile = false;
1476 switch (action) { 1479 switch (action) {
1477 case Action_none: 1480 case Action_none:

mercurial