1.1 --- a/src/share/vm/ci/bcEscapeAnalyzer.cpp Mon Apr 26 11:27:21 2010 -0700 1.2 +++ b/src/share/vm/ci/bcEscapeAnalyzer.cpp Mon Apr 26 23:59:45 2010 -0700 1.3 @@ -1408,8 +1408,11 @@ 1.4 } 1.5 1.6 void BCEscapeAnalyzer::copy_dependencies(Dependencies *deps) { 1.7 - if(!has_dependencies()) 1.8 - return; 1.9 + if (ciEnv::current()->jvmti_can_hotswap_or_post_breakpoint()) { 1.10 + // Also record evol dependencies so redefinition of the 1.11 + // callee will trigger recompilation. 1.12 + deps->assert_evol_method(method()); 1.13 + } 1.14 for (int i = 0; i < _dependencies.length(); i+=2) { 1.15 ciKlass *k = _dependencies[i]->as_klass(); 1.16 ciMethod *m = _dependencies[i+1]->as_method();