1.1 --- a/src/share/vm/opto/bytecodeInfo.cpp Fri Mar 27 14:37:42 2009 -0700 1.2 +++ b/src/share/vm/opto/bytecodeInfo.cpp Mon Mar 30 18:19:31 2009 -0700 1.3 @@ -232,6 +232,14 @@ 1.4 return "disallowed by CompilerOracle"; 1.5 } 1.6 1.7 + if (UseStringCache) { 1.8 + // Do not inline StringCache::profile() method used only at the beginning. 1.9 + if (callee_method->name() == ciSymbol::profile_name() && 1.10 + callee_method->holder()->name() == ciSymbol::java_lang_StringCache()) { 1.11 + return "profiling method"; 1.12 + } 1.13 + } 1.14 + 1.15 return NULL; 1.16 } 1.17