diff -r 1709e0e0b87c -r e3a2b513713a hotspot/src/share/vm/opto/graphKit.cpp --- a/hotspot/src/share/vm/opto/graphKit.cpp Thu Feb 20 16:38:45 2014 -0500 +++ b/hotspot/src/share/vm/opto/graphKit.cpp Sat Feb 22 10:22:05 2014 +0100 @@ -863,7 +863,7 @@ } } - if (env()->jvmti_can_access_local_variables()) { + if (env()->should_retain_local_variables()) { // At any safepoint, this method can get breakpointed, which would // then require an immediate deoptimization. can_prune_locals = false; // do not prune locals