< prev index next >

src/hotspot/share/ci/ciMethod.cpp

Print this page
rev 53254 : 8216556: Unnecessary liveness computation with JVMTI
Reviewed-by:

*** 400,415 **** // // Which local variables are live at a specific bci? When debugging // will return true for all locals in some cases to improve debug // information. MethodLivenessResult ciMethod::liveness_at_bci(int bci) { - MethodLivenessResult result = raw_liveness_at_bci(bci); if (CURRENT_ENV->should_retain_local_variables() || DeoptimizeALot) { // Keep all locals live for the user's edification and amusement. ! result.at_put_range(0, result.size(), true); ! } return result; } // ciMethod::live_local_oops_at_bci // // find all the live oops in the locals array for a particular bci --- 400,417 ---- // // Which local variables are live at a specific bci? When debugging // will return true for all locals in some cases to improve debug // information. MethodLivenessResult ciMethod::liveness_at_bci(int bci) { if (CURRENT_ENV->should_retain_local_variables() || DeoptimizeALot) { // Keep all locals live for the user's edification and amusement. ! MethodLivenessResult result(_max_locals); ! result.set_range(0, _max_locals); ! result.set_is_valid(); return result; + } + return raw_liveness_at_bci(bci); } // ciMethod::live_local_oops_at_bci // // find all the live oops in the locals array for a particular bci
< prev index next >