1.1 --- a/src/share/vm/opto/callGenerator.cpp Thu Sep 01 01:31:25 2011 -0700 1.2 +++ b/src/share/vm/opto/callGenerator.cpp Fri Sep 02 00:36:18 2011 -0700 1.3 @@ -726,7 +726,6 @@ 1.4 1.5 CallGenerator* CallGenerator::for_invokedynamic_inline(ciCallSite* call_site, JVMState* jvms, 1.6 ciMethod* caller, ciMethod* callee, ciCallProfile profile) { 1.7 - assert(call_site->is_constant_call_site() || call_site->is_mutable_call_site(), "must be"); 1.8 ciMethodHandle* method_handle = call_site->get_target(); 1.9 1.10 // Set the callee to have access to the class and signature in the 1.11 @@ -742,7 +741,7 @@ 1.12 CallGenerator* cg = C->call_generator(target_method, -1, false, jvms, true, PROB_ALWAYS); 1.13 if (cg != NULL && cg->is_inline()) { 1.14 // Add a dependence for invalidation of the optimization. 1.15 - if (call_site->is_mutable_call_site()) { 1.16 + if (!call_site->is_constant_call_site()) { 1.17 C->dependencies()->assert_call_site_target_value(call_site, method_handle); 1.18 } 1.19 return cg;