Mercurial > hg > truffle
diff src/share/vm/opto/callGenerator.cpp @ 3901:aa67216400d3
7085404: JSR 292: VolatileCallSites should have push notification too
Reviewed-by: never, kvn
author | twisti |
---|---|
date | Fri, 02 Sep 2011 00:36:18 -0700 |
parents | a32de5085326 |
children | c26de9aef2ed |
line wrap: on
line diff
--- a/src/share/vm/opto/callGenerator.cpp Thu Sep 01 01:31:25 2011 -0700 +++ b/src/share/vm/opto/callGenerator.cpp Fri Sep 02 00:36:18 2011 -0700 @@ -726,7 +726,6 @@ CallGenerator* CallGenerator::for_invokedynamic_inline(ciCallSite* call_site, JVMState* jvms, ciMethod* caller, ciMethod* callee, ciCallProfile profile) { - assert(call_site->is_constant_call_site() || call_site->is_mutable_call_site(), "must be"); ciMethodHandle* method_handle = call_site->get_target(); // Set the callee to have access to the class and signature in the @@ -742,7 +741,7 @@ CallGenerator* cg = C->call_generator(target_method, -1, false, jvms, true, PROB_ALWAYS); if (cg != NULL && cg->is_inline()) { // Add a dependence for invalidation of the optimization. - if (call_site->is_mutable_call_site()) { + if (!call_site->is_constant_call_site()) { C->dependencies()->assert_call_site_target_value(call_site, method_handle); } return cg;