src/share/vm/opto/bytecodeInfo.cpp

changeset 5427
02d7aa1456c9
parent 5113
1da5d70655e9
child 5763
1b64d46620a3
equal deleted inserted replaced
5424:5e3b6f79d280 5427:02d7aa1456c9
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

mercurial