230 |
230 |
231 if (callee_method->should_not_inline()) { |
231 if (callee_method->should_not_inline()) { |
232 return "disallowed by CompilerOracle"; |
232 return "disallowed by CompilerOracle"; |
233 } |
233 } |
234 |
234 |
|
235 if (UseStringCache) { |
|
236 // Do not inline StringCache::profile() method used only at the beginning. |
|
237 if (callee_method->name() == ciSymbol::profile_name() && |
|
238 callee_method->holder()->name() == ciSymbol::java_lang_StringCache()) { |
|
239 return "profiling method"; |
|
240 } |
|
241 } |
|
242 |
235 return NULL; |
243 return NULL; |
236 } |
244 } |
237 |
245 |
238 //-----------------------------try_to_inline----------------------------------- |
246 //-----------------------------try_to_inline----------------------------------- |
239 // return NULL if ok, reason for not inlining otherwise |
247 // return NULL if ok, reason for not inlining otherwise |