comparison src/share/vm/runtime/deoptimization.cpp @ 23086:bf41eee321e5

8074551: GWT can be marked non-compilable due to deopt count pollution Reviewed-by: kvn
author vlivanov
date Thu, 11 Jun 2015 14:19:40 +0300
parents ddce0b7cee93
children dd9cc155639c 1442c833c50e
comparison
equal deleted inserted replaced
23085:0b7060827bca 23086: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: