8074551: GWT can be marked non-compilable due to deopt count pollution

Reviewed-by: kvn
This commit is contained in:
Vladimir Ivanov 2015-06-11 14:19:40 +03:00
parent 513d9a5ede
commit 90a42c2491
11 changed files with 142 additions and 26 deletions

View file

@ -1460,7 +1460,11 @@ JRT_ENTRY(void, Deoptimization::uncommon_trap_inner(JavaThread* thread, jint tra
//
// The other actions cause immediate removal of the present code.
bool update_trap_state = (reason != Reason_tenured);
// Traps caused by injected profile shouldn't pollute trap counts.
bool injected_profile_trap = trap_method->has_injected_profile() &&
(reason == Reason_intrinsic || reason == Reason_unreached);
bool update_trap_state = (reason != Reason_tenured) && !injected_profile_trap;
bool make_not_entrant = false;
bool make_not_compilable = false;
bool reprofile = false;