src/share/vm/opto/doCall.cpp

changeset 3101
aa67216400d3
parent 3050
fdb992d83a87
child 3313
a04a201f0f5a
     1.1 --- a/src/share/vm/opto/doCall.cpp	Thu Sep 01 01:31:25 2011 -0700
     1.2 +++ b/src/share/vm/opto/doCall.cpp	Fri Sep 02 00:36:18 2011 -0700
     1.3 @@ -136,15 +136,9 @@
     1.4        str.force_bci(jvms->bci());  // Set the stream to the invokedynamic bci.
     1.5        ciCallSite* call_site = str.get_call_site();
     1.6  
     1.7 -      // Inline constant and mutable call sites.  We don't inline
     1.8 -      // volatile call sites optimistically since they are specified
     1.9 -      // to change their value often and that would result in a lot of
    1.10 -      // deoptimizations and recompiles.
    1.11 -      if (call_site->is_constant_call_site() || call_site->is_mutable_call_site()) {
    1.12 -        CallGenerator* cg = CallGenerator::for_invokedynamic_inline(call_site, jvms, caller, call_method, profile);
    1.13 -        if (cg != NULL) {
    1.14 -          return cg;
    1.15 -        }
    1.16 +      CallGenerator* cg = CallGenerator::for_invokedynamic_inline(call_site, jvms, caller, call_method, profile);
    1.17 +      if (cg != NULL) {
    1.18 +        return cg;
    1.19        }
    1.20        // If something failed, generate a normal dynamic call.
    1.21        return CallGenerator::for_dynamic_call(call_method);

mercurial