Mercurial > hg > truffle
diff src/share/vm/opto/parse1.cpp @ 6824:f13867c41f73
7199742: A lot of C2 OSR compilations of the same method's bci
Summary: Don't clone head of OSR loop.
Reviewed-by: jrose, twisti
author | kvn |
---|---|
date | Tue, 02 Oct 2012 14:49:21 -0700 |
parents | e626685e9f6c |
children | c3e799c37717 |
line wrap: on
line diff
--- a/src/share/vm/opto/parse1.cpp Tue Oct 02 12:25:13 2012 -0700 +++ b/src/share/vm/opto/parse1.cpp Tue Oct 02 14:49:21 2012 -0700 @@ -372,7 +372,8 @@ // in the CFG, which typeflow had previously ignored. // E.g., Object x = coldAtFirst() && notReached()? "str": new Integer(123). // This x will be typed as Integer if notReached is not yet linked. - uncommon_trap(Deoptimization::Reason_unreached, + // It could also happen due to a problem in ciTypeFlow analysis. + uncommon_trap(Deoptimization::Reason_constraint, Deoptimization::Action_reinterpret); set_map(types_are_good); }