hotspot/src/share/vm/opto/compile.cpp
changeset 31228 8e427370cdd1
parent 30624 2e1803c8a26d
child 32082 2a3323e25de1
--- a/hotspot/src/share/vm/opto/compile.cpp	Tue May 12 14:26:31 2015 +0200
+++ b/hotspot/src/share/vm/opto/compile.cpp	Thu Jun 11 14:19:40 2015 +0300
@@ -3390,9 +3390,6 @@
 bool Compile::too_many_traps(ciMethod* method,
                              int bci,
                              Deoptimization::DeoptReason reason) {
-  if (method->has_injected_profile()) {
-    return false;
-  }
   ciMethodData* md = method->method_data();
   if (md->is_empty()) {
     // Assume the trap has not occurred, or that it occurred only
@@ -3442,9 +3439,6 @@
 bool Compile::too_many_recompiles(ciMethod* method,
                                   int bci,
                                   Deoptimization::DeoptReason reason) {
-  if (method->has_injected_profile()) {
-    return false;
-  }
   ciMethodData* md = method->method_data();
   if (md->is_empty()) {
     // Assume the trap has not occurred, or that it occurred only