hotspot/src/share/vm/compiler/compileBroker.cpp
changeset 8870 119881dc9d0b
parent 8672 26a427ab6f32
child 8872 36680c58660e
--- a/hotspot/src/share/vm/compiler/compileBroker.cpp	Sat Mar 26 08:31:45 2011 -0700
+++ b/hotspot/src/share/vm/compiler/compileBroker.cpp	Sun Mar 27 00:00:14 2011 -0700
@@ -874,6 +874,14 @@
     return;
   }
 
+#ifndef PRODUCT
+  if (osr_bci != -1 && !FLAG_IS_DEFAULT(OSROnlyBCI)) {
+    if ((OSROnlyBCI > 0) ? (OSROnlyBCI != osr_bci) : (-OSROnlyBCI == osr_bci)) {
+      // Positive OSROnlyBCI means only compile that bci.  Negative means don't compile that BCI.
+      return;
+    }
+  }
+#endif
 
   // If this method is already in the compile queue, then
   // we do not block the current thread.