< prev index next >

hotspot/src/share/vm/c1/c1_LIRGenerator.cpp

Print this page
rev 11908 : 8160543: C1: Crash in java.lang.String.indexOf in some java.sql tests
Summary: C1 must use unverified entry point for unloaded methods.
Reviewed-by:

@@ -2971,11 +2971,11 @@
     args->at(0)->load_item_force(LIR_Assembler::receiverOpr());
     receiver = args->at(0)->result();
   }
 
   // emit invoke code
-  bool optimized = x->target_is_loaded() && x->target_is_final();
+  bool optimized = x->target_is_final(); // implies that it is loaded too.
   assert(receiver->is_illegal() || receiver->is_equal(LIR_Assembler::receiverOpr()), "must match");
 
   // JSR 292
   // Preserve the SP over MethodHandle call sites, if needed.
   ciMethod* target = x->target();
< prev index next >