7199742: A lot of C2 OSR compilations of the same method's bci

Don't clone head of OSR loop.

Reviewed-by: jrose, twisti
This commit is contained in:
Vladimir Kozlov 2012-10-02 14:49:21 -07:00
parent e8332c76e9
commit 8d8d00ff00
3 changed files with 60 additions and 1 deletions

View file

@ -372,7 +372,8 @@ void Parse::load_interpreter_state(Node* osr_buf) {
// 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);
}