hotspot/src/share/vm/ci/bcEscapeAnalyzer.cpp
changeset 5353 30f4b75f8005
parent 3261 c7d5aae8d3f7
child 5547 f4b087cbb361
--- a/hotspot/src/share/vm/ci/bcEscapeAnalyzer.cpp	Mon Apr 26 11:27:21 2010 -0700
+++ b/hotspot/src/share/vm/ci/bcEscapeAnalyzer.cpp	Mon Apr 26 23:59:45 2010 -0700
@@ -1408,8 +1408,11 @@
 }
 
 void BCEscapeAnalyzer::copy_dependencies(Dependencies *deps) {
-  if(!has_dependencies())
-    return;
+  if (ciEnv::current()->jvmti_can_hotswap_or_post_breakpoint()) {
+    // Also record evol dependencies so redefinition of the
+    // callee will trigger recompilation.
+    deps->assert_evol_method(method());
+  }
   for (int i = 0; i < _dependencies.length(); i+=2) {
     ciKlass *k = _dependencies[i]->as_klass();
     ciMethod *m = _dependencies[i+1]->as_method();