equal
deleted
inserted
replaced
410 // Which local variables are live at a specific bci? When debugging |
410 // Which local variables are live at a specific bci? When debugging |
411 // will return true for all locals in some cases to improve debug |
411 // will return true for all locals in some cases to improve debug |
412 // information. |
412 // information. |
413 MethodLivenessResult ciMethod::liveness_at_bci(int bci) { |
413 MethodLivenessResult ciMethod::liveness_at_bci(int bci) { |
414 MethodLivenessResult result = raw_liveness_at_bci(bci); |
414 MethodLivenessResult result = raw_liveness_at_bci(bci); |
415 if (CURRENT_ENV->jvmti_can_access_local_variables() || DeoptimizeALot || CompileTheWorld) { |
415 if (CURRENT_ENV->should_retain_local_variables() || DeoptimizeALot || CompileTheWorld) { |
416 // Keep all locals live for the user's edification and amusement. |
416 // Keep all locals live for the user's edification and amusement. |
417 result.at_put_range(0, result.size(), true); |
417 result.at_put_range(0, result.size(), true); |
418 } |
418 } |
419 return result; |
419 return result; |
420 } |
420 } |