Skip to content
Permalink
Browse files
8263985: BCEscapeAnalyzer::invoke checks target->is_loaded() twice
Reviewed-by: kvn, thartmann
  • Loading branch information
shipilev committed Mar 23, 2021
1 parent 4ef7c67 commit 57d8f1d09c700027ddea0521303ef5b455ae2679
Showing 1 changed file with 1 addition and 2 deletions.
@@ -302,8 +302,7 @@ void BCEscapeAnalyzer::invoke(StateInfo &state, Bytecodes::Code code, ciMethod*
// determine actual method (use CHA if necessary)
ciMethod* inline_target = NULL;
if (target->is_loaded() && klass->is_loaded()
&& (klass->is_initialized() || (klass->is_interface() && target->holder()->is_initialized()))
&& target->is_loaded()) {
&& (klass->is_initialized() || (klass->is_interface() && target->holder()->is_initialized()))) {
if (code == Bytecodes::_invokestatic
|| code == Bytecodes::_invokespecial
|| (code == Bytecodes::_invokevirtual && target->is_final_method())) {

0 comments on commit 57d8f1d

Please sign in to comment.