hotspot/src/share/vm/opto/bytecodeInfo.cpp
changeset 18946 65a870954fd7
parent 17386 e3b1a1af9968
child 20073 bfc95277d42b
equal deleted inserted replaced
18943:7d0ef675e808 18946:65a870954fd7
   291     const InlineTree *top = this;
   291     const InlineTree *top = this;
   292     while (top->caller_tree() != NULL) top = top->caller_tree();
   292     while (top->caller_tree() != NULL) top = top->caller_tree();
   293     ciInstanceKlass* k = top->method()->holder();
   293     ciInstanceKlass* k = top->method()->holder();
   294     if (!k->is_subclass_of(C->env()->Throwable_klass())) {
   294     if (!k->is_subclass_of(C->env()->Throwable_klass())) {
   295       set_msg("exception method");
   295       set_msg("exception method");
   296       return true;
       
   297     }
       
   298   }
       
   299 
       
   300   if (UseStringCache) {
       
   301     // Do not inline StringCache::profile() method used only at the beginning.
       
   302     if (callee_method->name() == ciSymbol::profile_name() &&
       
   303         callee_method->holder()->name() == ciSymbol::java_lang_StringCache()) {
       
   304       set_msg("profiling method");
       
   305       return true;
   296       return true;
   306     }
   297     }
   307   }
   298   }
   308 
   299 
   309   // use frequency-based objections only for non-trivial methods
   300   // use frequency-based objections only for non-trivial methods