1.1 --- a/src/share/vm/opto/compile.cpp Tue Jun 23 22:14:58 2015 -0400 1.2 +++ b/src/share/vm/opto/compile.cpp Thu Jun 11 14:19:40 2015 +0300 1.3 @@ -3292,9 +3292,6 @@ 1.4 bool Compile::too_many_traps(ciMethod* method, 1.5 int bci, 1.6 Deoptimization::DeoptReason reason) { 1.7 - if (method->has_injected_profile()) { 1.8 - return false; 1.9 - } 1.10 ciMethodData* md = method->method_data(); 1.11 if (md->is_empty()) { 1.12 // Assume the trap has not occurred, or that it occurred only 1.13 @@ -3344,9 +3341,6 @@ 1.14 bool Compile::too_many_recompiles(ciMethod* method, 1.15 int bci, 1.16 Deoptimization::DeoptReason reason) { 1.17 - if (method->has_injected_profile()) { 1.18 - return false; 1.19 - } 1.20 ciMethodData* md = method->method_data(); 1.21 if (md->is_empty()) { 1.22 // Assume the trap has not occurred, or that it occurred only