8035493: JVMTI PopFrame capability must instruct compilers not to prune locals

Reviewed-by: kvn, sla, coleenp, sspitsyn
This commit is contained in:
Markus Grönlund 2014-02-22 10:22:05 +01:00
parent 70c77b3470
commit 68857c9469
9 changed files with 48 additions and 17 deletions

View file

@ -412,7 +412,7 @@ MethodLivenessResult ciMethod::raw_liveness_at_bci(int bci) {
// information.
MethodLivenessResult ciMethod::liveness_at_bci(int bci) {
MethodLivenessResult result = raw_liveness_at_bci(bci);
if (CURRENT_ENV->jvmti_can_access_local_variables() || DeoptimizeALot || CompileTheWorld) {
if (CURRENT_ENV->should_retain_local_variables() || DeoptimizeALot || CompileTheWorld) {
// Keep all locals live for the user's edification and amusement.
result.at_put_range(0, result.size(), true);
}