src/share/vm/opto/graphKit.cpp
Print this page
rev 5933 : 8035493: JVMTI PopFrame capability must instruct compilers not to prune locals
Reviewed-by: kvn, sla, coleenp
*** 861,871 ****
can_prune_locals = true;
stack_slots_not_pruned = inputs;
}
}
! if (env()->jvmti_can_access_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
stack_slots_not_pruned = 0;
}
--- 861,871 ----
can_prune_locals = true;
stack_slots_not_pruned = inputs;
}
}
! 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
stack_slots_not_pruned = 0;
}